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 committed 2016-06-07 00:27:42 -04:00
1 parent e18a9264f3
commit 3b8ec68a3a
1 file changed
+2 -1
+2 -1
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.');