diff options
author | Sophie Tauchert <999eagle@999eagle.moe> | 2021-01-13 10:49:00 +0100 |
---|---|---|
committer | Abin Simon <abinsimon10@gmail.com> | 2021-01-14 22:24:26 +0530 |
commit | bc117cfee0ee5c9c30cce65cb2ac1451b72f6650 (patch) | |
tree | d3ebbebadbdff29a198214a28b5d633820ee2e9a | |
parent | ac912059329ca5db3646cdf4bbbd7a1b5e041a54 (diff) |
Fix error message for compatibility with previous version
-rw-r--r-- | src/app.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |