Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Aug 28, 2024
1 parent 5b38ac7 commit 0edd42d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/runner/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ func HandleRunError(resp *http.Response, reqErr error) error {
}

if ok, msg := attemptToParseStructuredError(body); ok {
spew.Dump(body)
return fmt.Errorf("could not run resouce: %s", msg)
}

Expand All @@ -346,7 +347,7 @@ func attemptToParseStructuredError(body []byte) (bool, string) {
}

err := jsonFormat.Unmarshal(body, &parsed)
if err != nil {
if err != nil || parsed.Status == 0 {
return false, ""
}

Expand Down

0 comments on commit 0edd42d

Please sign in to comment.