mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-13 08:38:47 +08:00
format:format and fix code
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { Response, NextFunction } from "express";
|
||||
import { Logger } from "../utils/logger";
|
||||
|
||||
interface CustomError {
|
||||
name?: string;
|
||||
message: string;
|
||||
success?: boolean;
|
||||
}
|
||||
|
||||
export default function handleError(
|
||||
res: Response,
|
||||
error: any,
|
||||
error: CustomError | unknown,
|
||||
message: string,
|
||||
next: NextFunction
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user