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 52d19ae commit 48ec4baCopy full SHA for 48ec4ba
payjoin-cli/src/app/config.rs
@@ -102,15 +102,13 @@ impl AppConfig {
102
.set_override_option(
103
"ohttp_keys",
104
matches.get_one::<String>("ohttp_keys").and_then(|s| {
105
- std::fs::read(s)
106
- .map_err(|e| {
107
- log::error!("Failed to read ohttp_keys file: {}", e);
108
- ConfigError::Message(format!(
109
- "Failed to read ohttp_keys file: {}",
110
- e
111
- ))
112
- })
113
- .ok()
+ Some(std::fs::read(s).map_err(|e| {
+ log::error!("Failed to read ohttp_keys file: {}", e);
+ ConfigError::Message(format!(
+ "Failed to read ohttp_keys file: {}",
+ e
+ ))
+ })?)
114
}),
115
)?
116
};
0 commit comments