chore(cli): Panic on broken pipe; review fixes
This commit is contained in:
parent
dbdda25224
commit
ce2bb561b4
2 changed files with 2 additions and 3 deletions
|
|
@ -25,8 +25,7 @@ impl Error {
|
|||
}
|
||||
|
||||
pub fn new(message: String) -> Self {
|
||||
let e = Error(Some(vec![message]));
|
||||
e
|
||||
Error(Some(vec![message]))
|
||||
}
|
||||
|
||||
pub fn new_ignored() -> Self {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const BUILD_VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
|||
const BUILD_SHA: Option<&'static str> = option_env!("BUILD_SHA");
|
||||
|
||||
fn main() {
|
||||
if let Err(ref e) = run() {
|
||||
if let Err(e) = run() {
|
||||
if e.is_ignored() {
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue