Skip to content

Commit 208269c

Browse files
committed
feat: print api error message
1 parent 36226a8 commit 208269c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ocm-backplane/cloud/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (cfg *QueryConfig) getIsolatedCredentials(ocmToken string) (aws.Credentials
265265
return aws.Credentials{}, fmt.Errorf("failed to fetch arn sequence: %w", err)
266266
}
267267
if response.StatusCode != http.StatusOK {
268-
return aws.Credentials{}, fmt.Errorf("failed to fetch arn sequence: %v", response.Status)
268+
return aws.Credentials{}, fmt.Errorf("failed to fetch arn sequence: %w", utils.TryPrintAPIError(response, false))
269269
}
270270

271271
bytes, err := io.ReadAll(response.Body)

0 commit comments

Comments
 (0)