Skip to content

Commit

Permalink
Revert "[patch]fix - SendError - issue #48 (#49)"
Browse files Browse the repository at this point in the history
This reverts commit efa875a.
  • Loading branch information
bnkamalesh committed Apr 21, 2024
1 parent efa875a commit a323faf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func SendError(w http.ResponseWriter, data interface{}, rCode int) {
In case of encoding error, send "internal server error" and
log the actual error.
*/
w.WriteHeader(http.StatusInternalServerError)
w.Write([]byte("500 - Internal Server Error"))
R500(w, ErrInternalServer)
LOGHANDLER.Error(err)
}
}
Expand Down

0 comments on commit a323faf

Please sign in to comment.