Stringify errors that get sent to notifications

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-15 12:06:08 -04:00
1 parent 07fbf74100
commit 74ebc33453
1 file changed
+1 -1
@@ -88,7 +88,7 @@ export class Notifications extends React.Component {
getMessage(notification: Notification) { getMessage(notification: Notification) {
let { message } = notification; let { message } = notification;
if (message instanceof JsonApiErrorParsed) { if (message instanceof JsonApiErrorParsed || message instanceof Error) {
message = message.toString(); message = message.toString();
} }