Skip to content

Commit

Permalink
[issue-#324-execute-middleware-for-static-assets] pass in error.code …
Browse files Browse the repository at this point in the history
…and error.message (default to 404 error code)
  • Loading branch information
crookse committed Jul 18, 2020
1 parent 55bf241 commit 5b2c77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export class Server {
} catch (error) {
return await this.handleHttpRequestError(
request,
this.httpErrorResponse(404),
this.httpErrorResponse(error.code ?? 404, error.message),
);
}
}
Expand Down

0 comments on commit 5b2c77e

Please sign in to comment.