3 ms·
> My reaction to 'the test fails because map::at threw an exception': stupid STL!! > A core dump would be so much easier to analyze.. Uncaught exceptions call
by nemetroid 7y ago
> My reaction to 'the test fails because map::at threw an exception': stupid STL!!
> A core dump would be so much easier to analyze..
Uncaught exceptions call terminate(), which by default calls abort(), which generates a core dump. So if you want a core dump, just avoid catching the exception.
- renox 7y agoExcept that I didn't put all these "catch".. But you're right, that's what should be done (or at least, rethrowing the exception from the catch block).