rust/rhg/src/main.rs
changeset 45440 a6a000ab135b
parent 45438 ed95ccc94333
child 45529 f17caf8f3fef
--- a/rust/rhg/src/main.rs	Thu Aug 13 16:36:42 2020 +0200
+++ b/rust/rhg/src/main.rs	Mon Aug 17 16:55:43 2020 +0200
@@ -21,7 +21,8 @@
             SubCommand::with_name("files").about(commands::files::HELP_TEXT),
         );
 
-    let matches = app.clone().get_matches_safe().unwrap_or_else(|_| {
+    let matches = app.clone().get_matches_safe().unwrap_or_else(|err| {
+        let _ = ui::Ui::new().writeln_stderr_str(&err.message);
         std::process::exit(exitcode::UNIMPLEMENTED_COMMAND)
     });