diff --git a/src/features/intentional-error/index.tsx b/src/features/intentional-error/index.tsx index 01ae3a5c4..fc0eca529 100644 --- a/src/features/intentional-error/index.tsx +++ b/src/features/intentional-error/index.tsx @@ -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;