Skip to content

Commit

Permalink
Update resolve.js (#40)
Browse files Browse the repository at this point in the history
if error route is async)
  • Loading branch information
Sergey Pashchenko authored and koistya committed Aug 21, 2016
1 parent e156c47 commit 4c9a229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function resolve(routes, pathOrContext) {
if (result === undefined && errorRoute) {
context.error = new Error('Not found');
context.error.status = 404;
return errorRoute.action(context, {});
return await errorRoute.action(context, {});
}

return result;
Expand Down

0 comments on commit 4c9a229

Please sign in to comment.