Skip to content

Commit

Permalink
fix(server/http): lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Sep 2, 2024
1 parent b681a06 commit d8f5535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func WriteError(w http.ResponseWriter, err error) {
w.WriteHeader(orbe.Code)
fmt.Fprint(w, orbe.Error()) //nolint:errcheck
} else {
w.WriteHeader(500)
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprint(w, err.Error()) //nolint:errcheck
}
}

0 comments on commit d8f5535

Please sign in to comment.