diff --git a/pages/_error-debug.js b/pages/_error-debug.js index 8155509f..a2f69514 100644 --- a/pages/_error-debug.js +++ b/pages/_error-debug.js @@ -1,4 +1,5 @@ import React from 'react' +import Head from 'next/head' import ansiHTML from 'ansi-html' export default class ErrorDebug extends React.Component { @@ -11,6 +12,9 @@ export default class ErrorDebug extends React.Component { const { name, message, stack, path } = this.props return
+ + + {path ?
Error in {path}
: null} { name === 'ModuleBuildError' diff --git a/pages/_error.js b/pages/_error.js index 6dc37163..aa1d177f 100644 --- a/pages/_error.js +++ b/pages/_error.js @@ -1,4 +1,5 @@ import React from 'react' +import Head from 'next/head' export default class Error extends React.Component { static getInitialProps ({ res, xhr }) { @@ -13,24 +14,29 @@ export default class Error extends React.Component { : (statusCode ? 'Internal Server Error' : 'An unexpected error has occurred') return
+ + +
{statusCode ?

{statusCode}

: null}

{title}.

+