Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Mar 15, 2021
1 parent cc7b93e commit 97c482f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kit/src/runtime/server/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ async function get_response({ request, options, $session, route, status = 200, e
// error page, there's not a lot we can do
if (error) throw e instanceof Error ? e : new Error(e);

loaded = { error: e instanceof Error ? e : { name: 'Error', message: e.toString() }, status: 500 };
loaded = {
error: e instanceof Error ? e : { name: 'Error', message: e.toString() },
status: 500
};
}

if (loaded) {
Expand Down

0 comments on commit 97c482f

Please sign in to comment.