Registry / utility / user-error

user-error

JSON →
library1.2.8rscratesunverified

UserFacingError is an error crate that allows you to pretty print your errors and error chain for consumption by the end user.

# Cargo.toml [dependencies] user-error = "1.2.8"
INSTALL
IMPORT
SIG · USER-ERROR
U
user-error
utilityrustv1.2.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UserFacingError
use user_error::UserFacingError;

Convert a standard error into a UserFacingError and print it.

use user_error::UserFacingError; fn main() { let err: UserFacingError = std::io::Error::new(std::io::ErrorKind::NotFound, "file not found").into(); println!("{}", err); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
user-error — cargo add user-error · libregistry