Commit b77d4ac2 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

fix system() return value handling


Change-Id: I3f12d4ce0653b31ca397167a40303b764bdf7472
Reviewed-by: default avatarSergio Ahumada <sahumada@blackberry.com>
parent b40a43a1
No related merge requests found
Showing with 3 additions and 1 deletion
......@@ -288,7 +288,9 @@ sub push_patches()
push @gitcmd, $remote, "$ref_from:refs/".($draft > 0 ? 'drafts' : 'for')."/$ref_to";
print '+ '.format_cmd(@gitcmd)."\n" if ($verbose);
exit system(@gitcmd);
my $ex = system(@gitcmd);
die("Failed to run ".format_cmd(@gitcmd).": $!\n") if ($ex < 0);
exit($ex >> 8) if ($ex);
}
load_aliases();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment