Skip to content

Commit

Permalink
catch API error (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkickr authored and kushalmalani committed Nov 8, 2023
1 parent 7c9e590 commit 8fb7cf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloud/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ func getImageName(cloudDomain, deploymentID, organizationID string, coreClient a
return deploymentInfo{}, err
}

err = astrocore.NormalizeAPIError(resp.HTTPResponse, resp.Body)
if err != nil {
return deploymentInfo{}, err
}

currentVersion := resp.JSON200.RuntimeVersion
namespace := resp.JSON200.ReleaseName
workspaceID := resp.JSON200.WorkspaceId
Expand Down

0 comments on commit 8fb7cf1

Please sign in to comment.