Better error model

This commit is contained in:
Roey Darwish Dror
2018-12-11 16:43:26 +02:00
parent f23b6435bf
commit 370310948b
16 changed files with 216 additions and 124 deletions

View File

@@ -1,13 +1,13 @@
use super::error::Error;
use super::executor::Executor;
use super::terminal::print_separator;
use super::utils::Check;
use failure;
#[must_use]
pub fn upgrade_macos(dry_run: bool) -> Option<(&'static str, bool)> {
print_separator("App Store");
let success = || -> Result<(), failure::Error> {
let success = || -> Result<(), Error> {
Executor::new("softwareupdate", dry_run)
.args(&["--install", "--all"])
.spawn()?