Skip to content

Commit

Permalink
Fix error message for failed example compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Sep 21, 2023
1 parent b2c6823 commit 2895639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdstanpy/install_cmdstan.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def compile_example(verbose: bool = False) -> None:
do_command(cmd, fd_out=None)
except RuntimeError as e:
# pylint: disable=raise-missing-from
raise CmdStanInstallError(f'Command "make clean-all" failed\n{e}')
raise CmdStanInstallError(f'Command "{" ".join(cmd)}" failed:\n{e}')

if not path.is_file():
raise CmdStanInstallError("Failed to generate example binary")
Expand Down

0 comments on commit 2895639

Please sign in to comment.