diff --git a/public/app/core/utils/errors.ts b/public/app/core/utils/errors.ts index 52a7c39f713..3f6f1cfbc8d 100644 --- a/public/app/core/utils/errors.ts +++ b/public/app/core/utils/errors.ts @@ -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); }