diff options
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/c++/test/suite.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/c++/test/suite.hpp b/modules/core/c++/test/suite.hpp index 88d741a..52ef71d 100644 --- a/modules/core/c++/test/suite.hpp +++ b/modules/core/c++/test/suite.hpp @@ -47,6 +47,10 @@ public: if( (eov_expr.is_error()) ){ \ auto& err = eov_expr.get_error(); \ std::stringstream sstr; \ - sstr<<msg_split<<" [Category] "<<err.get_category()<<" [Message] "<<err.get_message(); \ + sstr<<msg_split<<" [Category] "<<err.get_category(); \ + auto err_msg = err.get_message(); \ + if(err_msg.size() > 0u){ \ + sstr<<" [Message] "<<err_msg; \ + } \ throw std::runtime_error{sstr.str()}; \ } |