From 3fe7b55955ebd924f4cbaa1f19711972b431701f Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Sat, 20 Oct 2018 22:46:42 +0200 Subject: [PATCH] async -> Promise.reject --- test/apps/errors/src/routes/async-throw.json.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/apps/errors/src/routes/async-throw.json.js b/test/apps/errors/src/routes/async-throw.json.js index 918049e..25158f7 100644 --- a/test/apps/errors/src/routes/async-throw.json.js +++ b/test/apps/errors/src/routes/async-throw.json.js @@ -1,3 +1,3 @@ -export async function get(req, res) { - throw new Error('oops'); +export function get(req, res) { + return Promise.reject(new Error('oops')); } \ No newline at end of file