Accessors for exceptions.

This commit is contained in:
chriseth
2021-12-01 14:26:23 +01:00
parent cc2a8609d6
commit b6bd85202c
7 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ Json::Value formatErrorWithException(
_charStreamProvider
);
if (string const* description = boost::get_error_info<util::errinfo_comment>(_exception))
if (string const* description = _exception.comment())
message = ((_message.length() > 0) ? (_message + ":") : "") + *description;
else
message = _message;