Skip to content

Commit

Permalink
fix: print err when parseArgument() fails (#4355)
Browse files Browse the repository at this point in the history
When parseArgument() fails, error message should be printed to help
debugging.
  • Loading branch information
geyslan authored Oct 20, 2024
1 parent 7eafda0 commit 2099f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/grpc/event_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func getEventValue(arg trace.Argument) (*pb.EventValue, error) {

eventValue, err := parseArgument(arg)
if err != nil {
return nil, errfmt.Errorf("can't convert event data: %s - %v - %T", arg.Name, arg.Value, arg.Value)
return nil, errfmt.Errorf("can't convert event data [%s]: %s - %v - %T", err, arg.Name, arg.Value, arg.Value)
}

return eventValue, nil
Expand Down

0 comments on commit 2099f42

Please sign in to comment.