Skip to content

Commit

Permalink
More detailed info on exceptions w/o debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 7, 2020
1 parent 0eb81aa commit 523e161
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/core/src/exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ void impl_excep_to_str(const std::exception& e, std::string& ret, int lvl = 0)

if (const auto idx = findClosingBracket(']', '[', err);
idx != std::string::npos)
err = "Message: "s + err.substr(idx + 1);
{
err = "Message: "s + err.substr(idx + 1) + "Location: "s +
err.substr(0, idx) + "\n"s;
}

ret += "==== MRPT exception ====\n";
ret += err;
Expand Down

0 comments on commit 523e161

Please sign in to comment.