Skip to content

Commit

Permalink
fix: Field order
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 7, 2023
1 parent 3ffdc15 commit 57f1a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func fail(w http.ResponseWriter, msg string) {

log.Println("API: " + msg)
w.WriteHeader(http.StatusInternalServerError)
logerr(w.Write([]byte(`{"status": "error", "data": null, "message": "` + escape(msg) + `"}`)))
logerr(w.Write([]byte(`{"status": "error", "message": "` + escape(msg) + `", "data": null}`)))
}

func ok(w http.ResponseWriter, data string) {
Expand Down

0 comments on commit 57f1a14

Please sign in to comment.