mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-21 06:45:00 +00:00
async -> Promise.reject
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
export async function get(req, res) {
|
export function get(req, res) {
|
||||||
throw new Error('oops');
|
return Promise.reject(new Error('oops'));
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user