Could be extracted into `ConsoleErrorHandler::renderException`