We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35ed43 commit de116abCopy full SHA for de116ab
src/server/tokens.rs
@@ -81,7 +81,8 @@ impl Default for Tokens {
81
82
impl Tokens {
83
pub fn load() -> Fallible<Tokens> {
84
- let content = ::std::fs::read_to_string(Path::new(TOKENS_PATH))?;
+ let content = ::std::fs::read_to_string(Path::new(TOKENS_PATH))
85
+ .with_context(|_| format!("could not find {}", TOKENS_PATH))?;
86
let res = ::toml::from_str(&content)?;
87
Ok(res)
88
}
0 commit comments