Skip to content

Commit ae0e7f1

Browse files
committed
Include assertion that failed in STAN_OVERRIDE_EIGEN_ASSERT
1 parent bdd5b3e commit ae0e7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stan/math/prim/fun/Eigen.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#endif
88
#define eigen_assert(x) \
99
if (!(x)) { \
10-
throw(std::domain_error("Internal Eigen Error")); \
10+
throw(std::domain_error("Internal Eigen Error: Assertion '" #x "' failed in " __FILE__ )); \
1111
}
1212
#endif
1313
#ifdef EIGEN_MATRIXBASE_PLUGIN

0 commit comments

Comments
 (0)