diff options
author | Rich Trott <rtrott@gmail.com> | 2015-09-26 15:49:04 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-09-28 11:15:06 -0700 |
commit | 44efd66132f9f9058d7ead0547d9ab2d3e06b528 (patch) | |
tree | 0393f0c662fafc87c49905547c9b71375baa8891 /test/parallel/test-net-listen-error.js | |
parent | 680dda802393ef1513a8a84a353dfc2ecfacacb2 (diff) | |
download | android-node-v8-44efd66132f9f9058d7ead0547d9ab2d3e06b528.tar.gz android-node-v8-44efd66132f9f9058d7ead0547d9ab2d3e06b528.tar.bz2 android-node-v8-44efd66132f9f9058d7ead0547d9ab2d3e06b528.zip |
test: replace deprecated util.debug() calls
common.debug() is just util.debug() and emits a deprecation notice. Per
docs, use console.error() instead.
PR-URL: https://github.com/nodejs/node/pull/3082
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'test/parallel/test-net-listen-error.js')
-rw-r--r-- | test/parallel/test-net-listen-error.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-listen-error.js b/test/parallel/test-net-listen-error.js index b0d8aac8f8..79cfc7da6c 100644 --- a/test/parallel/test-net-listen-error.js +++ b/test/parallel/test-net-listen-error.js @@ -10,7 +10,7 @@ server.listen(1, '1.1.1.1', function() { // EACCESS or EADDRNOTAVAIL assert(false); }); server.on('error', function(error) { - common.debug(error); + console.error(error); gotError = true; }); |