Skip to content

Commit

Permalink
feat: handle error properly
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Dec 20, 2024
1 parent 27f7617 commit 5d7116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/utils/heartbeat_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ func ParseHeartbeats(r *http.Request) ([]*models.Heartbeat, error) {
return []*models.Heartbeat{&heartbeat}, nil
}

return nil, fmt.Errorf("failed to parse heartbeat data: %w", err)
return nil, fmt.Errorf("failed to parse heartbeat data: %v", err)
}

0 comments on commit 5d7116c

Please sign in to comment.