Open
Description
Currently, we have a lot of "anyhow" errors and rely on error downcasting to figure out the right exit code. Unfortunately, this makes it very difficult to figure out what the exit code should be.
Instead, we'd ideally:
- Abort immediately once we know the right exit code (power actor tests part 3 #282).
- Return situation-specific errors from state types like partitions & deadlines, so we can figure out the correct exit code.