From 5da8c77b3a73acda41376e3da4d6f2b0ec30469e Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 27 May 2021 21:13:36 -0700 Subject: [PATCH] Added error handling to Crisp. --- .../error-boundary/error-boundary.component.jsx | 17 +++++++++++++++++ client/src/redux/user/user.sagas.js | 6 +++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/client/src/components/error-boundary/error-boundary.component.jsx b/client/src/components/error-boundary/error-boundary.component.jsx index cef01e299..0eca73dea 100644 --- a/client/src/components/error-boundary/error-boundary.component.jsx +++ b/client/src/components/error-boundary/error-boundary.component.jsx @@ -57,6 +57,23 @@ ${this.state.error.stack} if (this.state.hasErrored === true) { logImEXEvent("error_boundary_rendered", { error, info }); + window.$crisp.push([ + "set", + "session:event", + [ + [ + [ + "error_boundary", + { + error: this.state.error.message, + stack: this.state.error.stack, + }, + "red", + ], + ], + ], + ]); + return (