Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
Ignore exception catch code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbreen committed Apr 4, 2015
1 parent 207bfd7 commit ba701cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/proxy/mutators/oauth_param_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ module.exports = function(proxy) {
proxy.logger.info(module_tag, "Proxying %s %s%s, consumer key %s", req.method, req.headers.host, req.url, consumer_key);
return next();

/* istanbul ignore next */
} catch (e) {
} /* istanbul ignore next */ catch (e) {
if (proxy && proxy.logger)
proxy.logger.error(module_tag, "Failed to handle request %s %s%s due to %s:\n%s", req.method, req.headers.host, req.url, e, e.stack);
res.writeHead(500, 'Internal error');
Expand Down

0 comments on commit ba701cc

Please sign in to comment.