diff --git a/pmtiles/bucket.go b/pmtiles/bucket.go index 885a8fa..9353f92 100644 --- a/pmtiles/bucket.go +++ b/pmtiles/bucket.go @@ -113,6 +113,9 @@ func OpenBucket(ctx context.Context, bucketURL string, bucketPrefix string) (Buc return bucket, nil } else { bucket, err := blob.OpenBucket(ctx, bucketURL) + if err != nil { + return nil, err + } if bucketPrefix != "/" && bucketPrefix != "." { bucket = blob.PrefixedBucket(bucket, path.Clean(bucketPrefix)+string(os.PathSeparator)) }