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:
parent
07fbf74100
commit
f9635504f9
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user