diff --git a/packages/backend/src/misc/QuantumKVCache.ts b/packages/backend/src/misc/QuantumKVCache.ts index ebf4e2daa4..6f0ca25450 100644 --- a/packages/backend/src/misc/QuantumKVCache.ts +++ b/packages/backend/src/misc/QuantumKVCache.ts @@ -714,10 +714,6 @@ export class QuantumKVCache = Value> implements I // Start new call const fetchPromise = promiseTry(this.callFetcher, key) .catch(async err => { - if (err instanceof QuantumCacheError && err.cacheName === this.nameForError) { - throw err; - } - if (err instanceof EntityNotFoundError) { throw new KeyNotFoundError(this.nameForError, key, renderInlineError(err), { cause: err }); } @@ -763,10 +759,6 @@ export class QuantumKVCache = Value> implements I // Start new call const fetchPromise = promiseTry(this.callOptionalFetcher, key) .catch(async err => { - if (err instanceof QuantumCacheError && err.cacheName === this.nameForError) { - throw err; - } - throw new FetchFailedError(this.nameForError, key, renderInlineError(err), { cause: err }); }) .then(result => result ?? undefined);