Dashboards: Show error when data source is missing (#60099)

Return caught exceptions to panel as error state
This commit is contained in:
Josh Hunt
2022-12-14 12:37:31 +00:00
committed by GitHub
parent 666f69ca14
commit 9a41277ecd
2 changed files with 11 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import { DataQueryError } from '@grafana/data';
*
* @public
*/
export function toDataQueryError(err: DataQueryError | string | Object): DataQueryError {
export function toDataQueryError(err: DataQueryError | string | unknown): DataQueryError {
const error = (err || {}) as DataQueryError;
if (!error.message) {