From fd50241e2ab6c3c1549dddad904e62b3ba005e8f Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Mon, 6 Jan 2025 00:53:10 -0800
Subject: [PATCH] Update errorboundry.jsx

---
 src/components/errorboundry.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/components/errorboundry.jsx b/src/components/errorboundry.jsx
index bad4b552..1b2a3b1e 100644
--- a/src/components/errorboundry.jsx
+++ b/src/components/errorboundry.jsx
@@ -14,8 +14,10 @@ export default class ErrorBoundary extends React.Component {
     });
 
     // You can also log error messages to an error reporting service here
-    // eslint-disable-next-line no-console
-    console.error(error, errorInfo);
+    if (error || errorInfo) {
+      // eslint-disable-next-line no-console
+      console.error("component error: %s, info: %s", error, errorInfo);
+    }
   }
 
   render() {