print errer message if mmdebstrap failed to run

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-01-08 08:32:09 +01:00
parent ff2910a746
commit 4f811b7117
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -5849,9 +5849,11 @@ sub main() {
if ($exitstatus == 0) { if ($exitstatus == 0) {
my $duration = Time::HiRes::time - $before; my $duration = Time::HiRes::time - $before;
info "success in " . (sprintf "%.04f", $duration) . " seconds"; info "success in " . (sprintf "%.04f", $duration) . " seconds";
exit 0;
} }
exit $exitstatus; error "mmdebstrap failed to run";
return 1;
} }
main(); main();