Skip to content

Commit d29ca10

Browse files
committed
fix: use correct errorKey for factory error log
1 parent 8bb87b6 commit d29ca10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/bentocache/src/cache/facades/remote_cache.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export class RemoteCache {
5252

5353
try {
5454
return await fn()
55-
} catch (error) {
56-
this.#logger.error({ error, opId: options.id }, `(${operation}) failed on remote cache`)
55+
} catch (err) {
56+
this.#logger.error({ err, opId: options.id }, `(${operation}) failed on remote cache`)
5757

5858
this.#circuitBreaker?.open()
5959

@@ -68,7 +68,7 @@ export class RemoteCache {
6868
return fallbackValue
6969
}
7070

71-
throw new errors.E_L2_CACHE_ERROR(error)
71+
throw new errors.E_L2_CACHE_ERROR(err)
7272
}
7373
}
7474

0 commit comments

Comments
 (0)