Unverified Commit dcfa35fa authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Fix `with-sentry-simple` example (#13404)

Previous referencing the incorrect `Error` global.
parent b3e45fab
......@@ -13,7 +13,10 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
}
MyError.getInitialProps = async ({ res, err, asPath }) => {
const errorInitialProps = await Error.getInitialProps({ res, err })
const errorInitialProps = await NextErrorComponent.getInitialProps({
res,
err,
})
// Workaround for https://github.com/zeit/next.js/issues/8592, mark when
// getInitialProps has run
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment