Stringify errors that get sent to notifications (#3393)

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