mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
show notifications error for rejected telemetry requests (#2334)
* show notification error for rejected telemetry requests * change notification message details
This commit is contained in:
parent
08ef932926
commit
97ccaa58c7
@ -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);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user