wip
This commit is contained in:
parent
66ced29c6d
commit
dbcfdcd0c3
41 changed files with 3637 additions and 791 deletions
6
src/die.ts
Normal file
6
src/die.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { Context } from 'koa';
|
||||
|
||||
export const die = (ctx: Context, error = '問題が発生しました。お手数ですが、最初からやり直してください。', status = 400): Promise<void> => {
|
||||
ctx.status = status;
|
||||
return ctx.render('error', { error });
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue