Explorar el Código

Nicer 'invalid options' error messages

Benjamin Sago hace 4 años
padre
commit
d678ccc08d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
         }
     }