Open
Description
Currently, the diagnose
utility prints all output to stdout and returns 0 regardless of warnings. Would it make sense to return a non-zero exit status if there's an error with any of the checks?
This would make it easier to programmatically distinguish CmdStan runs with diagnostic warnings in the shell. As far as I know, currently the diagnose
output needs to be checked manually or the output loaded into one of the programming language specific packages.
The return line in diagnose.cpp can just return the bool value from the variable has_error
, or a more specific exit code can be used.
Metadata
Metadata
Assignees
Labels
No labels