IntentionalError: throw an actual error instance
This commit is contained in:
@ -5,7 +5,7 @@ import React from 'react';
|
||||
* For testing logging/monitoring & previewing ErrorBoundary design.
|
||||
*/
|
||||
const IntentionalError: React.FC = () => {
|
||||
throw 'This error is intentional.';
|
||||
throw new Error('This error is intentional.');
|
||||
};
|
||||
|
||||
export default IntentionalError;
|
||||
|
||||
Reference in New Issue
Block a user