IntentionalError: display an ErrorBoundary preview at /error
This commit is contained in:
13
app/soapbox/features/intentional_error/index.js
Normal file
13
app/soapbox/features/intentional_error/index.js
Normal file
@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
|
||||
/**
|
||||
* IntentionalError:
|
||||
* For testing logging/monitoring & previewing ErrorBoundary design.
|
||||
*/
|
||||
export default class IntentionalError extends React.Component {
|
||||
|
||||
render() {
|
||||
throw 'This error is intentional.';
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user