Skip to content

Commit

Permalink
Make error messages more clear from nix-eval
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcgibbo committed Jan 24, 2021
1 parent d420e5c commit 66a97bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/nixpkgs-hammer
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,9 @@ if __name__ == '__main__':

args = parser.parse_args()

main(args)
try:
main(args)
except subprocess.CalledProcessError as e:
print(red(subprocess.list2cmdline(e.cmd)))
print(f"Returned nonzero exit status {e.returncode}")
sys.exit(1)

0 comments on commit 66a97bf

Please sign in to comment.