From e1e0a8d3e7af85ba3025a7f8473ead3a68abac8e Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Fri, 27 Jan 2023 09:32:42 -0800 Subject: [PATCH] fix: fix unused 'action' property in ErrorBoundary --- src/containers/error-boundary.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/containers/error-boundary.jsx b/src/containers/error-boundary.jsx index fb7cfca1c..0df13ea1a 100644 --- a/src/containers/error-boundary.jsx +++ b/src/containers/error-boundary.jsx @@ -39,7 +39,10 @@ class ErrorBoundary extends React.Component { } // report every error in the console - log.error(`Unhandled Error: ${error.stack}\nComponent stack: ${errorInfo.componentStack}`); + log.error([ + `Unhandled Error with action='${this.props.action}': ${error.stack}`, + `Component stack: ${errorInfo.componentStack}` + ].join('\n')); } handleBack () {