Skip to content

Centralize errors originating in CLI #193

@victor-linroth-sensmetry

Description

Currently the sysand crate is littered with bail! and anyhow! macros used to generate ad hoc errors in place. It would be nice to try to centralize these in the CliError enum, partly to reduce duplication of error messages and partly to get a better overview of the errors originating in the CLI.

Note that bail! is still useful for simplifying the control flow of error handling but it could preferably be bail!(CliError::<...>) instead of bail!("<ad hoc message>").

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions