Skip to content

Commit c0cb5ff

Browse files
committed
tweak error log
1 parent 1b85d3b commit c0cb5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cloudflare/src/cli/commands/populate-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ export async function populateCache(
8080
const binding = (config.r2_buckets ?? []).find(({ binding }) => binding === R2_CACHE_BINDING_NAME);
8181

8282
if (!binding) {
83-
throw new Error(`No R2 binding '${R2_CACHE_BINDING_NAME}' found!`);
83+
throw new Error(`No R2 binding ${JSON.stringify(R2_CACHE_BINDING_NAME)} found!`);
8484
}
8585

8686
const bucket = binding.bucket_name;
8787

8888
if (!bucket) {
89-
throw new Error(`R2 binding '${R2_CACHE_BINDING_NAME}' should have a 'bucket_name'`);
89+
throw new Error(`R2 binding ${JSON.stringify(R2_CACHE_BINDING_NAME)} should have a 'bucket_name'`);
9090
}
9191

9292
logger.info("\nPopulating R2 incremental cache...");

0 commit comments

Comments
 (0)