Skip to content

Commit

Permalink
fix(omni up): πŸ› return code should be 1 on error (#267)
Browse files Browse the repository at this point in the history
The `omni up` command was simply returning exit code `0` on error to set
things up, instead of erroring out properly.

This is now fixed.
  • Loading branch information
xaf authored Dec 9, 2023
1 parent 1005a4d commit cc54234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal/commands/builtin/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,11 @@ impl UpCommand {
let options = UpOptions::new().cache(self.cli_args().cache_enabled);
if let Err(err) = up_config.up(&options) {
omni_error!(format!("issue while setting repo up: {}", err));
exit(1);
}
} else if let Err(err) = up_config.down() {
omni_error!(format!("issue while tearing repo down: {}", err));
exit(1);
}
}

Expand Down

0 comments on commit cc54234

Please sign in to comment.