Skip to content

Commit 9eeb26c

Browse files
authoredSep 30, 2022
GCS: fix error handling when checking for bucket existence (#299)
1 parent 9cbf66f commit 9eeb26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/stores/GCSDataStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class GCSDataStore extends DataStore {
4646
const bucket = this.gcs.bucket(this.bucket_name);
4747
bucket.exists((error, exists) => {
4848
// ignore insufficient access error, assume bucket exists
49-
if (error.code === 403) {
49+
if (error && error.code === 403) {
5050
return;
5151
}
5252

0 commit comments

Comments
 (0)
Please sign in to comment.