forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
bugSomething isn't workingSomething isn't workingcodecode enhancement, optimization, cleanup..programmer stuffcode enhancement, optimization, cleanup..programmer stuff
Description
After the Exception code cleanup PR #742 the error messages streamed into NTA_THROW no longer work.
try {
NTA_THROW << "This error msg";
} catch (const Exception &e) {
EXPECT_STREQ(e.getMessage(), "This error msg");
}
I added this to the end of ExceptionTest.hpp and it fails. e.getMessage() is empty.
Tried this on Windows 10 using MSVC 2019.
But what I really want is something like: e.what() to return
Exception: <full path to module>(<line number>) message: <message goes here>
It is not obvious to me what changed that broke it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcodecode enhancement, optimization, cleanup..programmer stuffcode enhancement, optimization, cleanup..programmer stuff