- Rename error handler.
- Truncate errors. - Better error tags, release version etc.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { dev } from '$app/env';
|
||||
import { getTeam } from '$lib/common';
|
||||
import * as db from '$lib/database';
|
||||
import { PrismaErrorHandler } from '$lib/database';
|
||||
import { ErrorHandler } from '$lib/database';
|
||||
import type { RequestHandler } from '@sveltejs/kit';
|
||||
|
||||
export const options = async () => {
|
||||
@@ -36,6 +36,6 @@ export const get: RequestHandler = async (request) => {
|
||||
headers: { Location: `/webhooks/success` }
|
||||
};
|
||||
} catch (error) {
|
||||
return PrismaErrorHandler(error);
|
||||
return ErrorHandler(error);
|
||||
}
|
||||
};
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import * as db from '$lib/database';
|
||||
import { PrismaErrorHandler } from '$lib/database';
|
||||
import { ErrorHandler } from '$lib/database';
|
||||
import type { RequestHandler } from '@sveltejs/kit';
|
||||
|
||||
export const options = async () => {
|
||||
@@ -24,6 +24,6 @@ export const get: RequestHandler = async (request) => {
|
||||
headers: { Location: `/webhooks/success` }
|
||||
};
|
||||
} catch (error) {
|
||||
return PrismaErrorHandler(error);
|
||||
return ErrorHandler(error);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user