Skip to content

Commit fe44a47

Browse files
authoredApr 30, 2024··
Improve error message for missing body (#1451)
1 parent 8361067 commit fe44a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎internal/internal_task_handlers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ ProcessEvents:
10421042
}
10431043
// At this point, all update messages should have a body
10441044
if historyMessages[i].Body == nil {
1045-
return nil, errors.New("missing body for accepted message")
1045+
return nil, fmt.Errorf("missing body in message for update ID %v", msg.GetProtocolInstanceId())
10461046
}
10471047
}
10481048
msgs = indexMessagesByEventID(historyMessages)

0 commit comments

Comments
 (0)
Please sign in to comment.