1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Stringify errors that get sent to notifications (#3393)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-15 12:59:03 -04:00 committed by GitHub
parent 07fbf74100
commit f9635504f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}