Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 313938b

Browse files
committed
Cleaning up more errors.
1 parent cdb60a9 commit 313938b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎lib/actions/pollAction.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ module.exports = function (successResponse, errorResponse, headerParser, session
117117

118118
getNewEvents(req, function (error, newEvents) {
119119
if (error) return errorResponse.respond(req, res, 'newevents', error);
120-
successResponse.respond(res, newEvents);
120+
try {
121+
successResponse.respond(res, newEvents);
122+
} catch (error) {
123+
// just silenty fail
124+
return true;
125+
}
121126
});
122127

123128
});

‎lib/util/requestValidator.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function(headerParser, errorResponse, sessionService) {
66
var headers = req.session.linked || headerParser.parse(req);
77

88
if (headers.trusted && headers.trusted.toLowerCase() === 'no') {
9-
var message = 'To use Armada, you need to enable trust for this domain. Please enable trust and refresh.';
9+
var message = 'To use Standing Fleet, you need to enable trust for this domain. Please enable trust and refresh.';
1010
return errorResponse.respond(req, res, 'trust', message);
1111
}
1212

0 commit comments

Comments
 (0)