mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05: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