Skip to content

Commit

Permalink
dns: add missing exports.BADNAME
Browse files Browse the repository at this point in the history
Adds the documented but missing DNS error exports.BADNAME. This export
has been there before but got lost in a 2012 commit that added more
error codes. nodejs#3076 will remove the
wrong error code exports.ADNAME.

PR-URL: nodejs#3051
Fixes: nodejs#3050
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
  • Loading branch information
silverwind committed Sep 27, 2015
1 parent 212c9c0 commit 24fe112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ exports.NOTIMP = 'ENOTIMP';
exports.REFUSED = 'EREFUSED';
exports.BADQUERY = 'EBADQUERY';
exports.ADNAME = 'EADNAME';
exports.BADNAME = 'EBADNAME';
exports.BADFAMILY = 'EBADFAMILY';
exports.BADRESP = 'EBADRESP';
exports.CONNREFUSED = 'ECONNREFUSED';
Expand Down

0 comments on commit 24fe112

Please sign in to comment.