chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8fb6ef
)
otter cli: With -vv, mention skipped nonexistent prefs
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 6 Jun 2021 23:20:41 +0000
(
00:20
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 7 Jun 2021 00:19:00 +0000
(
01:19
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cli/otter.rs
patch
|
blob
|
history
diff --git
a/cli/otter.rs
b/cli/otter.rs
index ac0692be2e61080e34a71cff62af79d3e2f13b24..b3d6383c798831d05724285a8bb8250570d249bb 100644
(file)
--- a/
cli/otter.rs
+++ b/
cli/otter.rs
@@
-355,7
+355,13
@@
fn main() {
let data: Option<Prefs> = (||{
let data = match fs::read_to_string(&prefs_path) {
- Err(e) if e.kind() == ErrorKind::NotFound => return Ok(None),
+ Err(e) if e.kind() == ErrorKind::NotFound => {
+ if parsed.verbose >= 2 {
+ eprintln!("prefs file {:?} does not exist, skipping",
+ &prefs_path);
+ }
+ return Ok(None)
+ },
Err(e) => throw!(AE::from(e).context("open and read")),
Ok(data) => data,
};