|
|
@@ -760,7 +760,20 @@ const pinnacleDataLoop = () => {
|
|
|
GLOBAL_DATA.loopActive = false;
|
|
|
|
|
|
Logs.out('loop inactive');
|
|
|
- notifyException(`Pinnacle API paused. ${exceptionMessage}. ${err.message}`);
|
|
|
+ const exceptionList = ['Pinnacle API paused']
|
|
|
+ if (exceptionMessage) {
|
|
|
+ exceptionList.push(exceptionMessage);
|
|
|
+ }
|
|
|
+ if (err.source?.data?.message) {
|
|
|
+ exceptionList.push(err.source.data.message);
|
|
|
+ }
|
|
|
+ else if (err.message) {
|
|
|
+ exceptionList.push(err.message);
|
|
|
+ }
|
|
|
+ if (err.source?.username) {
|
|
|
+ exceptionList.push(err.source.username);
|
|
|
+ }
|
|
|
+ notifyException(exceptionList.join('. '));
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|