Skip to content

Commit

Permalink
minor error msg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Oct 26, 2023
1 parent f7f4b08 commit f86ee58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (cs *server) publishHandler(w http.ResponseWriter, r *http.Request, _ httpr
// Convert the sensorID back to a JSON message
alteredMsg, err := json.Marshal(sensorIDMap)
if err != nil {
http.Error(w, "Error processing JSON", http.StatusInternalServerError)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
// Publish the altered JSON message
Expand Down

0 comments on commit f86ee58

Please sign in to comment.