Move exception's translation into AssertionResultData message

This commit is contained in:
Martin Hořeňovský committed 2023-03-11 16:14:06 +01:00
1 parent 3220ae6d4a
commit 13fae1e2ff
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -619,13 +619,13 @@ namespace Catch {
void RunContext::handleUnexpectedInflightException(
AssertionInfo const& info,
std::string const& message,
std::string&& message,
AssertionReaction& reaction
) {
m_lastAssertionInfo = info;
AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) );
data.message = message;
data.message = CATCH_MOVE(message);
AssertionResult assertionResult{ info, CATCH_MOVE(data) };
assertionEnded( assertionResult );
populateReaction( reaction );