From 97ccaa58c79ab810b79dcb5fdebe9e0080126f81 Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Fri, 29 Mar 2019 15:52:44 -0700 Subject: [PATCH] show notifications error for rejected telemetry requests (#2334) * show notification error for rejected telemetry requests * change notification message details --- src/api/telemetry/TelemetryAPI.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/telemetry/TelemetryAPI.js b/src/api/telemetry/TelemetryAPI.js index d32b57d361..9de8638eb3 100644 --- a/src/api/telemetry/TelemetryAPI.js +++ b/src/api/telemetry/TelemetryAPI.js @@ -280,7 +280,11 @@ define([ if (!provider) { 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); + }); }; /**