mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-21 20:52:10 +00:00
- Rename error handler.
- Truncate errors. - Better error tags, release version etc.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getUserDetails } 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 post: RequestHandler = async (event) => {
|
||||
@@ -16,6 +16,6 @@ export const post: RequestHandler = async (event) => {
|
||||
await db.addSource({ id, teamId, oauthId, groupName, appId, appSecret });
|
||||
return { status: 201 };
|
||||
} catch (error) {
|
||||
return PrismaErrorHandler(error);
|
||||
return ErrorHandler(error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user