Skip to content

Commit 3a05484

Browse files
committed
More print fixes
1 parent 4563f3b commit 3a05484

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13183,7 +13183,7 @@ func AbortExecution(resp http.ResponseWriter, request *http.Request) {
1318313183
if err != nil {
1318413184
log.Printf("[ERROR][%s] Failed getting execution (abort): %s", executionId, err)
1318513185
resp.WriteHeader(401)
13186-
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Failed getting execution ID %s because it doesn't exist (abort)."}`, executionId)))
13186+
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Failed getting execution ID '%s' because it doesn't exist (abort)."}`, executionId)))
1318713187
return
1318813188
}
1318913189

@@ -23877,7 +23877,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h
2387723877
oldExecution, err := GetWorkflowExecution(ctx, referenceId[0])
2387823878
if err != nil {
2387923879
log.Printf("[INFO][%s] Failed getting execution (execution) %s", referenceId[0], err)
23880-
return workflowExecution, ExecInfo{}, fmt.Sprintf("Failed getting execution ID %s because it doesn't exist.", referenceId[0]), err
23880+
return workflowExecution, ExecInfo{}, fmt.Sprintf("Failed getting execution ID '%s' because it doesn't exist (answer).", referenceId[0]), err
2388123881
}
2388223882

2388323883
if oldExecution.Workflow.ID != workflow.ID {
@@ -24416,7 +24416,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h
2441624416
oldExecution, err := GetWorkflowExecution(ctx, referenceId[0])
2441724417
if err != nil {
2441824418
log.Printf("[ERROR][%s] Failed getting execution (execution): %s", referenceId[0], err)
24419-
return workflowExecution, ExecInfo{}, fmt.Sprintf("Failed getting execution ID %s because it doesn't exist.", referenceId[0]), err
24419+
return workflowExecution, ExecInfo{}, fmt.Sprintf("Failed getting execution ID '%s' because it doesn't exist (prepare exec).", referenceId[0]), err
2442024420
}
2442124421

2442224422
if oldExecution.Status != "WAITING" {

0 commit comments

Comments
 (0)