fix: error handling fallback in search endpoints (#961)

This commit is contained in:
Pål Håland
2026-05-08 22:19:43 +02:00
committed by GitHub
parent a11a4cb3cb
commit 54e2fc2fe6
2 changed files with 3 additions and 2 deletions

View File

@@ -48,6 +48,6 @@ export async function POST(event: RequestEvent) {
} catch (e: any) { } catch (e: any) {
console.error(e); console.error(e);
throw error(e.httpStatus, e) throw error(e.httpStatus || 500, e)
} }
} }

View File

@@ -42,6 +42,7 @@ export async function POST(event: RequestEvent) {
}); });
return json(r); return json(r);
} catch (e: any) { } catch (e: any) {
throw error(e.httpStatus, e) console.error(e);
throw error(e.httpStatus || 500, e)
} }
} }