Skip to content

Commit

Permalink
domain: add message for dispose deprecation
Browse files Browse the repository at this point in the history
PR-URL: #7053
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex committed Jun 7, 2016
1 parent e18a926 commit 3b8ec68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');

0 comments on commit 3b8ec68

Please sign in to comment.