IntentionalError: throw an actual error instance

This commit is contained in:
Alex Gleason 2023-10-21 18:27:55 -05:00
parent 23efda1590
commit 365cd70c9b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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;