From 365cd70c9bd835fef48b2314ea5069b41609ca73 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 21 Oct 2023 18:27:55 -0500 Subject: [PATCH] IntentionalError: throw an actual error instance --- src/features/intentional-error/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;