Skip to content

Commit

Permalink
Improve verbosity in CliRunner.assert_exit_0
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Nov 29, 2024
1 parent 6712f91 commit ad535c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_ix_models/util/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,6 @@ def assert_exit_0(self, *args, **kwargs) -> click.testing.Result:

if result.exit_code != 0:
print(f"{result.exit_code = }", f"{result.output = }", sep="\n")
raise RuntimeError(result.exit_code)
raise RuntimeError(result.exit_code) from result.exception

return result

0 comments on commit ad535c2

Please sign in to comment.