mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 03:54:46 +00:00
async -> Promise.reject
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
Reference in New Issue
Block a user