summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSophie Tauchert <999eagle@999eagle.moe>2021-01-13 10:49:00 +0100
committerAbin Simon <abinsimon10@gmail.com>2021-01-14 22:24:26 +0530
commitbc117cfee0ee5c9c30cce65cb2ac1451b72f6650 (patch)
treed3ebbebadbdff29a198214a28b5d633820ee2e9a
parentac912059329ca5db3646cdf4bbbd7a1b5e041a54 (diff)
Fix error message for compatibility with previous version
-rw-r--r--src/app.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index 0f2f39d..fc90b6d 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -296,7 +296,7 @@ pub fn validate_time_format(formatter: &str) -> Result<(), String> {
| Some('U') | Some('u') | Some('V') | Some('v') | Some('W') | Some('w')
| Some('X') | Some('x') | Some('Y') | Some('y') | Some('Z') | Some('z')
| Some('+') | Some('%') => (),
- Some(c) => return Err(format!("invalid format specifier: {}", c)),
+ Some(c) => return Err(format!("invalid format specifier: %{}", c)),
None => return Err("missing format specifier".to_owned()),
},
None => break,