We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wish render 500 error page when catch exception on my ExceptionFilter. but display just white page.
catch(exception: Error, host: ArgumentsHost) { const ctx = host.switchToHttp(); const response = ctx.getResponse(); const exceptionStatus = exception instanceof HttpException ? exception.getStatus() : HttpStatus.INTERNAL_SERVER_ERROR; const data = exceptionStatus >= HttpStatus.INTERNAL_SERVER_ERROR ? exception['stack'] : undefined; this.logger.error(Object.assign({ exceptionStatus: exceptionStatus, msg: exception['message'], stack: data })); response.view('errors/500.hbs', {title: '500 ERROR'}); }
The text was updated successfully, but these errors were encountered:
Did you manage to solve this @hanadamaru?
Sorry, something went wrong.
No branches or pull requests
I wish render 500 error page when catch exception on my ExceptionFilter.
but display just white page.
The text was updated successfully, but these errors were encountered: