domain: add message for dispose deprecation

PR-URL: https://github.com/nodejs/node/pull/7053
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Brian White 2016-05-29 14:39:29 -04:00
parent e18a9264f3
commit 3b8ec68a3a
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209

View File

@ -314,4 +314,5 @@ Domain.prototype.dispose = util.deprecate(function() {
// mark this domain as 'no longer relevant'
// so that it can't be entered or activated.
this._disposed = true;
});
}, 'Domain.dispose is deprecated. Recover from failed I/O actions explicitly ' +
'via error event handlers set on the domain instead.');