From 3b8ec68a3a4cb014fdc7770bb0fec5248aee2691 Mon Sep 17 00:00:00 2001 From: Brian White Date: Sun, 29 May 2016 14:39:29 -0400 Subject: [PATCH] domain: add message for dispose deprecation PR-URL: https://github.com/nodejs/node/pull/7053 Reviewed-By: James M Snell --- lib/domain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.');