1e4372c627
* Show a better error when someone throws undefined * Update error wording Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com> * Update error wording in test Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com> * Update test and add check for statusCode before updating error
11 lines
No EOL
174 B
JavaScript
11 lines
No EOL
174 B
JavaScript
function ThrowUndefined (props) {
|
|
return (
|
|
<div>throw-undefined</div>
|
|
)
|
|
}
|
|
|
|
ThrowUndefined.getInitialProps = () => {
|
|
throw undefined
|
|
}
|
|
|
|
export default ThrowUndefined |