Browse Source

Nicer 'invalid options' error messages

Benjamin Sago 4 years ago
parent
commit
d678ccc08d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main.rs

+ 2 - 2
src/main.rs

@@ -77,12 +77,12 @@ fn main() {
         }
 
         OptionsResult::InvalidOptionsFormat(oe) => {
-            eprintln!("Invalid options: {:?}", oe);
+            eprintln!("Invalid options: {}", oe);
             exit(exits::OPTIONS_ERROR);
         }
 
         OptionsResult::InvalidOptions(why) => {
-            eprintln!("{}", why);
+            eprintln!("Invalid options: {}", why);
             exit(exits::OPTIONS_ERROR);
         }
     }