Skip to content

Commit d24937d

Browse files
committed
fmt::format for exception
1 parent 5fadc23 commit d24937d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/AnalysisSupport/src/AODJAlienReaderHelpers.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ static std::string describeException(std::exception const& exception)
132132
try {
133133
std::rethrow_if_nested(exception);
134134
} catch (std::exception const& nested) {
135-
description += ": " + describeException(nested);
135+
description += fmt::format(": {}", describeException(nested));
136136
} catch (RuntimeErrorRef const& ref) {
137-
description += ": " + std::string(error_from_ref(ref).what);
137+
description += fmt::format(": {}", error_from_ref(ref).what);
138138
} catch (...) {
139139
description += ": unknown exception";
140140
}

0 commit comments

Comments
 (0)