From 260c84f520f6c60c0864ddcb57350b1533c15f3a Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Nov 2018 01:57:31 +0900 Subject: [PATCH] Better error code --- src/server/api/call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/call.ts b/src/server/api/call.ts index 673d44919..900b77e68 100644 --- a/src/server/api/call.ts +++ b/src/server/api/call.ts @@ -18,7 +18,7 @@ export default (endpoint: string, user: IUser, app: IApp, data: any, file?: any) } if (ep.meta.requireCredential && user == null) { - return rej('SIGNIN_REQUIRED'); + return rej('CREDENTIAL_REQUIRED'); } if (ep.meta.requireCredential && user.isSuspended) {