Skip to content

Commit 6c1cdca

Browse files
yoshitsugulaurenzlong
authored andcommitted
Fix error message in storage bucket function (#276)
1 parent df3db62 commit 6c1cdca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function bucket(bucket?: string): BucketBuilder {
4141
' through `functions.storage.bucket(bucketName)`, or set process.env.FIREBASE_CONFIG.');
4242
}
4343
if (!/^[a-z\d][a-z\d\\._-]{1,230}[a-z\d]$/.test(bucket)) {
44-
throw new Error('Invalid bucket name ${bucket}');
44+
throw new Error(`Invalid bucket name ${bucket}`);
4545
}
4646
return `projects/_/buckets/${bucket}`;
4747
};

0 commit comments

Comments
 (0)