mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-21 17:01:04 +01:00
chore(be): add app id to error message
This commit is contained in:
parent
70f9754f1a
commit
08a09492ee
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user