async -> Promise.reject

This commit is contained in:
Nico Rehwaldt
2018-10-20 22:46:42 +02:00
parent 464924ed67
commit 3fe7b55955

View File

@@ -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'));
}