Skip to content

Commit

Permalink
Fix: display error in inspect page (#1188)
Browse files Browse the repository at this point in the history
* Fix: display error in inspect page

* Fix: display error in error callout

* Fix: use the right enum
  • Loading branch information
alonsopec89 authored and hugoaguirre committed Nov 25, 2024
1 parent c823fd4 commit 3a3a058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/core/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func RunInNewSpan[I, O any](
if err != nil {
sm.State = spanStateError
span.SetStatus(codes.Error, err.Error())
span.RecordError(err)
return base.Zero[O](), err
}
// TODO: the typescript code checks if sm.State == error here. Can that happen?
Expand Down

0 comments on commit 3a3a058

Please sign in to comment.