We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a63a58 commit e2a8292Copy full SHA for e2a8292
src/util/unwrap_nested_exception.cpp
@@ -42,7 +42,7 @@ std::string unwrap_exception(const std::exception &e, int level)
42
std::string nested_message = unwrap_exception(e, level + 1);
43
// Some exception messages already end in a new line (e.g. as they have
44
// dumped an irept. Most do not so add a new line on.
45
- if(!has_suffix(nested_message, "\n")) // TODO: replace with more C++ style
+ if(nested_message.back() != '\n')
46
{
47
message_stream << '\n';
48
}
0 commit comments