diff --git a/lib/domain.js b/lib/domain.js index d6958b2c30c7e4..355c09c6e93f7d 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.');