Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

helo: when timed out, provide host name in error

  • Loading branch information...
commit a8b7b7a380a27eccaa0cb3e0d9d65cd507ec7d40 1 parent e849eb1
@msimerson msimerson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/helo.checks.js
View
4 plugins/helo.checks.js
@@ -487,9 +487,9 @@ exports.get_a_records = function (host, cb) {
// Set-up timer
var timer = setTimeout(function () {
- plugin.logerror('timeout!');
- var e = new Error('timeout');
+ var e = new Error('timeout resolving: ' + host);
e.code = 'ETIMEOUT';
+ plugin.logerror(e);
return cb(e);
}, (plugin.cfg.main.dns_timeout || 30) * 1000);
Please sign in to comment.
Something went wrong with that request. Please try again.