Fixed bugs in appcreator

This commit is contained in:
frikky
2020-09-27 20:44:53 +02:00
parent 90f33d95b5
commit f6edb2aeb7
4 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -1843,7 +1843,7 @@ func saveWorkflow(resp http.ResponseWriter, request *http.Request) {
if !found && param.Required {
log.Printf("Appaction %s with required param %s doesn't exist.", action.Name, param.Name)
resp.WriteHeader(401)
resp.Write([]byte(`{"success": false}`))
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Appaction %s with required param '%s' is empty."}`, action.Name, param.Name)))
return
}