E1028: verb does not return a value on every path
A verb that declares a return type must end every path in a return with a value.
A verb that declares a return type must end every path in a return with a
value. ADR-0118 makes return the only way a value leaves a verb. A bare
return; in such a verb is the same error, and it points at that statement.
When a path simply falls off the end, the error points at the start of the
verb body.
Example
actus
Fix
Add a return for the remaining path.
actus
Run actus explain E1028 in your terminal to read this entry offline. Browse Ownership & types or all error codes.