From 218b7677d722ce08a4f139f67bbae74f43b9a158 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Fri, 6 Sep 2024 09:30:41 -0700 Subject: Fix error message --- server/guest/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/guest') diff --git a/server/guest/handler.go b/server/guest/handler.go index 04adc0c..008aeef 100644 --- a/server/guest/handler.go +++ b/server/guest/handler.go @@ -327,7 +327,7 @@ func (handler *GuestHandler) deleteGuest(request *http.Request) *appError { return err } if handler.findID(request) { - return &appError{errors.New("ID not found"), "ID not found", http.StatusNotFound} + return &appError{errors.New("ID not found"), "{ \"message\": \"ID not found\" }", http.StatusNotFound} } guestID, err := getID(request) if err != nil { -- cgit v1.2.3