Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(riot): add run_with_status function where main can return a stat…
…us code/error (#61) * feat(riot): add run_with_status function where main can return a status code/error * refactor: run_with_status now depends on run and not the other way around * change: run_with_status now returns `Msg error * Change `run_with_status` to use an error handler Make `run_with_status` use an error handler in optional argument `on_error` or use a default that handles `` `Msg of string ``. Also, `shutdown` is called when an error occurs now. * Use Log.error instead of eprintf * Use match on status instead of Result.fold * Use generic error type instead of > `Msg * Restrict default_on_error error type * Fix syntax error in default_on_error * fix: remove default on error
- Loading branch information