Преглед изворни кода

Nicer 'invalid options' error messages

Benjamin Sago пре 4 година
родитељ
комит
d678ccc08d
1 измењених фајлова са 2 додато и 2 уклоњено
  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);
         }
     }