Skip to content

Commit 2895639

Browse files
committed
Fix error message for failed example compilation.
1 parent b2c6823 commit 2895639

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmdstanpy/install_cmdstan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def compile_example(verbose: bool = False) -> None:
361361
do_command(cmd, fd_out=None)
362362
except RuntimeError as e:
363363
# pylint: disable=raise-missing-from
364-
raise CmdStanInstallError(f'Command "make clean-all" failed\n{e}')
364+
raise CmdStanInstallError(f'Command "{" ".join(cmd)}" failed:\n{e}')
365365

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

0 commit comments

Comments
 (0)