Skip to content

Commit c6e4665

Browse files
committed
错误提示更正
1 parent 1c8294b commit c6e4665

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/middleware/verifyMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const verifyLogin: IMiddleware = async (ctx, next) => {
2525
// 2.验证名字是否存在
2626
const result = await hasCUPremise('users', 'create', { name })
2727
if (result.isHas) {
28-
const error = new Error(errorType.NAME_IS_EXISTS)
28+
const error = new Error(errorType.USER_NOT_EXISTS)
2929
return ctx.app.emit('error', error, ctx)
3030
}
3131

0 commit comments

Comments
 (0)