mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-23 15:42:28 -04:00
Add proper error type & error handling
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { t } from "elysia";
|
||||
|
||||
export const KError = t.Object({
|
||||
status: t.Integer(),
|
||||
message: t.String(),
|
||||
details: t.Any(),
|
||||
});
|
||||
export type KError = typeof KError.static;
|
||||
Reference in New Issue
Block a user