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:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user