summaryrefslogtreecommitdiff
path: root/lib/domain.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2016-05-29 14:39:29 -0400
committerBrian White <mscdex@mscdex.net>2016-06-07 00:27:42 -0400
commit3b8ec68a3a4cb014fdc7770bb0fec5248aee2691 (patch)
treeec30ae0ba6342c3ef770704a799b0a38b9ae6ca7 /lib/domain.js
parente18a9264f3cf7bad47d1887eabe86c4a74c58a6b (diff)
downloadnode-new-3b8ec68a3a4cb014fdc7770bb0fec5248aee2691.tar.gz
domain: add message for dispose deprecation
PR-URL: https://github.com/nodejs/node/pull/7053 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/domain.js')
-rw-r--r--lib/domain.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/domain.js b/lib/domain.js
index d6958b2c30..355c09c6e9 100644
--- a/lib/domain.js
+++ b/lib/domain.js
@@ -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.');