handle async route errors

Related to #487
This commit is contained in:
Nico Rehwaldt
2018-10-20 22:40:21 +02:00
parent e5d7d8ab2b
commit 464924ed67
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
export async function get(req, res) {
throw new Error('oops');
}