mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:53:10 +08:00
Added another error object message detection
This commit is contained in:
@ -6,6 +6,8 @@ export function getMessageFromError(err: any): string | null {
|
||||
return err.message;
|
||||
} else if (err.data && err.data.message) {
|
||||
return err.data.message;
|
||||
} else if (err.statusText) {
|
||||
return err.statusText;
|
||||
} else {
|
||||
return JSON.stringify(err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user