fix: error handling fallback in search endpoints (#961)
This commit is contained in:
@@ -48,6 +48,6 @@ export async function POST(event: RequestEvent) {
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
|
||||
throw error(e.httpStatus, e)
|
||||
throw error(e.httpStatus || 500, e)
|
||||
}
|
||||
}
|
||||
@@ -42,6 +42,7 @@ export async function POST(event: RequestEvent) {
|
||||
});
|
||||
return json(r);
|
||||
} catch (e: any) {
|
||||
throw error(e.httpStatus, e)
|
||||
console.error(e);
|
||||
throw error(e.httpStatus || 500, e)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user