From 2b422aa92506e2416afde1c24fb25f9d320c18d6 Mon Sep 17 00:00:00 2001 From: Ocarinaoftime <89474990+Ocarinaoftime@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:11:33 -0400 Subject: [PATCH] Update route.go for more detailed error messages --- route.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route.go b/route.go index 9944aa0..c82a75e 100644 --- a/route.go +++ b/route.go @@ -71,7 +71,7 @@ func (route *Route) Handle() http.Handler { // Check if there's a header of the type we need. service, actionName := parseAction(r.Header.Get("SOAPAction")) if service == "" || actionName == "" || r.Method != "POST" { - printError(w, "WiiSOAP can't handle this. Try again later.") + printError(w, "WiiSOAP can't handle this. Try again later. (Service or actionName blank or method is not 'POST')") return } @@ -104,7 +104,7 @@ func (route *Route) Handle() http.Handler { // Action is only properly populated if we found it previously. if action.ActionName == "" && action.ServiceType == "" { - printError(w, "WiiSOAP can't handle this. Try again later.") + printError(w, "WiiSOAP can't handle this. Try again later. (ActionName and ServiceType blank)") return }