mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
todo errors
This commit is contained in:
@@ -55,6 +55,7 @@ userRouter.get("/users/signup", async ctx => {
|
||||
try {
|
||||
await user.save();
|
||||
} catch (e) {
|
||||
// TODO: Errors
|
||||
ctx.throw(400);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user