show notifications error for rejected telemetry requests (#2334)

* show notification error for rejected telemetry requests

* change notification message details
This commit is contained in:
Deep Tailor 2019-03-29 15:52:44 -07:00 committed by Andrew Henry
parent 08ef932926
commit 97ccaa58c7

View File

@ -280,7 +280,11 @@ define([
if (!provider) { if (!provider) {
return Promise.reject('No provider found'); return Promise.reject('No provider found');
} }
return provider.request.apply(provider, arguments); return provider.request.apply(provider, arguments).catch((rejected) => {
this.openmct.notifications.error('Error requesting telemetry data, see console for details');
console.error(rejected);
return Promise.reject(rejected);
});
}; };
/** /**