fix(portal-api): don't propagate prometheus errors

This commit is contained in:
Sérgio Ramos 2017-09-05 16:45:15 +01:00
parent 5ae0b20c86
commit bf86427609

View File

@ -2530,7 +2530,7 @@ class Data extends EventEmitter {
const handleMetrics = (err, metrics) => {
if (err) {
return cb(err);
return cb(null, []);
}
cb(null, Data.formatMetrics(metrics));