#470: Added better error messaging for later debugs

This commit is contained in:
frikky
2021-08-13 13:14:51 +02:00
parent 7a4f5d0ae8
commit 56185e53e2
4 changed files with 63 additions and 4 deletions
+2 -2
View File
@@ -1950,8 +1950,8 @@ func handleExecution(id string, workflow shuffle.Workflow, request *http.Request
//Org []Org `json:"org,omitempty" datastore:"org"`
err = shuffle.SetWorkflowExecution(ctx, workflowExecution, true)
if err != nil {
log.Printf("Error saving workflow execution for updates %s: %s", topic, err)
return shuffle.WorkflowExecution{}, "Failed getting workflowexecution", err
log.Printf("[WARNING] Error saving workflow execution for updates %s: %s", topic, err)
return shuffle.WorkflowExecution{}, fmt.Sprintf("Failed setting workflowexecution: %s", err), err
}
// Adds queue for onprem execution