diff --git a/public/app/features/explore/Explore.tsx b/public/app/features/explore/Explore.tsx index d2588a8ec0b..fb2f6759111 100644 --- a/public/app/features/explore/Explore.tsx +++ b/public/app/features/explore/Explore.tsx @@ -735,7 +735,7 @@ export class Explore extends React.PureComponent { console.error(response); - let error: string | JSX.Element = response; + let error: string | JSX.Element; if (response.data) { if (typeof response.data === 'string') { error = response.data; @@ -752,6 +752,12 @@ export class Explore extends React.PureComponent { } else { throw new Error('Could not handle error response'); } + } else if (response.message) { + error = response.message; + } else if (typeof response === 'string') { + error = response; + } else { + error = 'Unknown error during query transaction. Please check JS console logs.'; } this.setState(state => {