chore(be): add app id to error message

This commit is contained in:
Denis Gukov 2024-07-10 17:25:38 +05:00
parent 70f9754f1a
commit 08a09492ee

View File

@ -83,7 +83,7 @@ func AddTemplate(w http.ResponseWriter, r *http.Request) {
}
if _, ok := util.Config.Apps[string(newTemplate.App)]; !ok {
helpers.WriteErrorStatus(w, "Invalid app id", http.StatusBadRequest)
helpers.WriteErrorStatus(w, "Invalid app id: "+string(newTemplate.App), http.StatusBadRequest)
return
}
@ -146,7 +146,7 @@ func UpdateTemplate(w http.ResponseWriter, r *http.Request) {
}
if _, ok := util.Config.Apps[string(template.App)]; !ok {
helpers.WriteErrorStatus(w, "Invalid app id", http.StatusBadRequest)
helpers.WriteErrorStatus(w, "Invalid app id: "+string(template.App), http.StatusBadRequest)
return
}