diff --git a/lib/core/renderer.js b/lib/core/renderer.js index ace6a5f900..9e28ae2ddb 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -352,6 +352,11 @@ export default class Renderer extends Tapable { err.message = err.message || 'Nuxt Server Error' err.name = (!err.name || err.name === 'Error') ? 'NuxtServerError' : err.name + // We hide actual errors from end users, so show them on server logs + if (err.statusCode !== 404) { + console.error(err) // eslint-disable-line no-console + } + const sendResponse = (content, type = 'text/html') => { // Set Headers res.statusCode = err.statusCode