Skip to content

Commit 4ab15ca

Browse files
generateSecureBundleURLWithResponse check errors (#107)
1 parent caf4244 commit 4ab15ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

astra/bundle.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ func generateSecureBundleURLWithResponse(url, databaseID, token string, ctx cont
150150
return nil, err
151151
}
152152
res, err := client.GenerateSecureBundleURLWithResponse(ctx, astra.DatabaseIdParam(databaseID))
153-
153+
if err != nil {
154+
return nil, err
155+
}
156+
154157
if res.StatusCode() != http.StatusOK {
155158
return nil, fmt.Errorf("unable to generate bundle urls, failed with status code %d", res.StatusCode())
156159
}

0 commit comments

Comments
 (0)