mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboards: Show error when data source is missing (#60099)
Return caught exceptions to panel as error state
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user