| Crates.io | set-error |
| lib.rs | set-error |
| version | 1.0.1 |
| created_at | 2019-04-30 13:51:46.767815+00 |
| updated_at | 2019-05-02 13:41:23.738186+00 |
| description | A very simple trait that overwrites errors. |
| homepage | http://efunb.com/ |
| repository | https://gitlab.com/efunb/set-error |
| max_upload_size | |
| id | 131168 |
| size | 5,617 |
A very simple trait that overwrites errors with Strings for Results and Options.
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.")?;
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
If you are viewing this from GitHub then this is a read only copy. Please contribute to the GitLab copy here.