Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
/ set-error Public archive

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

Notifications You must be signed in to change notification settings

eopb/set-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages