mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
fix templating error dialog for Prometheus
This commit is contained in:
parent
56e2082205
commit
65bc194c42
@ -106,6 +106,11 @@ function (angular, _, config) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for Prometheus
|
||||||
|
if (!err.data.message && _.isString(err.data.error)) {
|
||||||
|
err.data.message = err.data.error;
|
||||||
|
}
|
||||||
|
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user