IntentionalError: throw an actual error instance
This commit is contained in:
parent
23efda1590
commit
365cd70c9b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
* For testing logging/monitoring & previewing ErrorBoundary design.
|
* For testing logging/monitoring & previewing ErrorBoundary design.
|
||||||
*/
|
*/
|
||||||
const IntentionalError: React.FC = () => {
|
const IntentionalError: React.FC = () => {
|
||||||
throw 'This error is intentional.';
|
throw new Error('This error is intentional.');
|
||||||
};
|
};
|
||||||
|
|
||||||
export default IntentionalError;
|
export default IntentionalError;
|
||||||
|
|
Loading…
Reference in a new issue