Skip to content

Commit

Permalink
Render trace for failed invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot authored and xrtm000 committed Mar 14, 2023
1 parent b6a8806 commit b48bac7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ case class InvokeScriptTrace(
) ++ (resultE match {
case Right(value) => TraceStep.maybeErrorJson(None) ++ Json.obj("result" -> TraceStep.scriptResultJson(invokeId, value))
case Left(e) => TraceStep.maybeErrorJson(Some(e))
}) ++ (if (logged && resultE.isRight) Json.obj(TraceStep.logJson(log)) else JsObject.empty)
}) ++ (if (logged) Json.obj(TraceStep.logJson(log)) else JsObject.empty)
}
}

Expand Down

0 comments on commit b48bac7

Please sign in to comment.