]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/cli/command.rs: set exit status on error
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 17 Jul 2019 11:40:10 +0000 (13:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 17 Jul 2019 11:40:10 +0000 (13:40 +0200)
src/cli/command.rs

index 71cef2a5def52603b2aecc1416bdd7540cb0a2f3..a25965568a63c89a3fafebbd4be5dfc9f2d38792 100644 (file)
@@ -212,6 +212,7 @@ fn handle_simple_command(
         }
         Err(err) => {
             eprintln!("Error: {}", err);
+            std::process::exit(-1);
         }
     }
 }