From fdabe27d30abc06d5a1ae04ddd15012194655cad Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 12 Nov 2025 01:00:32 -0500 Subject: [PATCH] remove error filtering --- packages/backend/src/misc/QuantumKVCache.ts | 8 -------- 1 file changed, 8 deletions(-) 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);