fix templating error dialog for Prometheus

This commit is contained in:
Mitsuhiro Tanda 2015-11-10 19:01:37 +09:00
parent 56e2082205
commit 65bc194c42

View File

@ -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;
});
};