From 5d7116c6d063692ee22a1b081faf69af2c6ada31 Mon Sep 17 00:00:00 2001 From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:59:17 -0500 Subject: [PATCH] feat: handle error properly --- routes/utils/heartbeat_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/utils/heartbeat_utils.go b/routes/utils/heartbeat_utils.go index c0040b50..cadcdab0 100644 --- a/routes/utils/heartbeat_utils.go +++ b/routes/utils/heartbeat_utils.go @@ -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) }