File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -612,21 +612,21 @@ namespace Catch {
612612 populateReaction (
613613 reaction, info.resultDisposition & ResultDisposition::Normal );
614614 }
615- resetAssertionInfo ();
616615 }
617616 void RunContext::reportExpr (
618617 AssertionInfo const &info,
619618 ResultWas::OfType resultType,
620619 ITransientExpression const *expr,
621620 bool negated ) {
622621
623- m_lastAssertionInfo = info;
622+ m_lastAssertionInfo. lineInfo = info. lineInfo ;
624623 AssertionResultData data ( resultType, LazyExpression ( negated ) );
625624
626625 AssertionResult assertionResult{ info, CATCH_MOVE ( data ) };
627626 assertionResult.m_resultData .lazyExpression .m_transientExpression = expr;
628627
629628 assertionEnded ( CATCH_MOVE (assertionResult) );
629+ resetAssertionInfo ();
630630 }
631631
632632 void RunContext::handleMessage (
You can’t perform that action at this time.
0 commit comments