set-error

Crates.ioset-error
lib.rsset-error
version1.0.1
sourcesrc
created_at2019-04-30 13:51:46.767815
updated_at2019-05-02 13:41:23.738186
descriptionA very simple trait that overwrites errors.
homepagehttp://efunb.com/
repositoryhttps://gitlab.com/efunb/set-error
max_upload_size
id131168
size5,617
Ethan Brierley (eopb)

documentation

https://docs.rs/set-error/

README

set-error

A very simple trait that overwrites errors with Strings for Results and Options.

pipeline status License Latest version Latest Docs downloads-badge

When used with the ? operator it makes a nice pattern. Documentation

File::open("config.yaml")
    .set_error("Failed to open config file.")?
    .read_to_string(&mut contents)
    .set_error("Failed to read file content.")?;

Help

If you run into any issues or need help with using read_input in your project please email incoming+efunb-set-error-12103568-issue-@incoming.gitlab.com

Warning

If you are viewing this from GitHub then this is a read only copy. Please contribute to the GitLab copy here.

Commit count: 0

cargo fmt