Skip to content

Commit

Permalink
Return on error
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwilliam committed Oct 28, 2021
1 parent 0a4c4ba commit c08d05d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ferry.go
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ func (f *Ferry) ReportState() {
state, err := f.SerializeStateToJSON()
if err != nil {
f.logger.WithError(err).Error("failed to serialize state to JSON")
return
}

callback.Payload = string(state)
Expand Down

0 comments on commit c08d05d

Please sign in to comment.