瀏覽代碼

Properly forward message based errors when quitting program

timvisee 7 年之前
父節點
當前提交
a4b7736019
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      cli/src/util.rs

+ 1 - 8
cli/src/util.rs

@@ -30,14 +30,7 @@ pub fn quit_error_msg<S>(err: S) -> !
     where
         S: AsRef<str> + Display + Debug + Sync + Send + 'static
 {
-    // TODO: forward the error the `quit_error` here
-    // quit_error(failure::err_msg(err));
-
-    // Print the error message
-    eprintln!("error: {}", err);
-
-    // Quit
-    exit(1);
+    quit_error(failure::err_msg(err).compat());
 }
 
 /// Open the given URL in the users default browser.