stan-dev / httpstan

HTTP interface to Stan, a package for Bayesian inference.
ISC License
39 stars 15 forks source link

feat: Add context to initialization failed error #597

Closed riddell-stan closed 2 years ago

riddell-stan commented 2 years ago

When Stan is unable to initialize a chain, it aborts with an "Initialization failed" error message. Prior to issuing this error message, Stan emits potentially useful informational messages, such as "Rejecting initial value: Log probability evaluates to log(0)". Previously, these messages were not included in the exception.

Closes #595

riddell-stan commented 2 years ago

I'll merge this even though the macOS runners are still working. Seems like GitHub is out of macOS runners at the moment.