From 5a733b747f507c89ab1c48e7dd0aa83ecd0fa2c0 Mon Sep 17 00:00:00 2001 From: monoid Date: Fri, 1 Jan 2021 03:26:25 +0900 Subject: [PATCH] error handler change export --- src/route/error_handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/route/error_handler.ts b/src/route/error_handler.ts index fa07782..be43a02 100644 --- a/src/route/error_handler.ts +++ b/src/route/error_handler.ts @@ -1,12 +1,12 @@ import {Context, Next} from 'koa'; -interface ErrorFormat { +export interface ErrorFormat { code: number, message: string, detail?: string } -export class ClientRequestError implements Error{ +class ClientRequestError implements Error{ name: string; message: string; stack?: string | undefined;