Duolith docs

Errors E0500 to E0599

E0597 Command that does not say what it changes

Message the command `name` does not say what it changes

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A command's changes: names the models it changes, so the build knows which answers to refresh when it succeeds, and the client refreshes exactly those. Without it the build would have to guess. A command that changes nothing stored says changes: nothing.

How to fix it

Add changes: with the models it changes, such as changes: [Post, Comment], or changes: nothing.

In a terminal

duolith explain E0597

Mentioned in