★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/92f766bd83Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
test: improve assertion message in internet dgram test
When an error occurs unexpectedly, let the user know what the error is.

PR-URL: #30545
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Nov 21, 2019
1 parent a5f25ec commit 92f766bd8327f98185584e966714bf8831966ab7
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/internet/test-dgram-send-cb-quelches-error.js
@@ -28,7 +28,7 @@ function callbackOnly(err) {
}

function onEvent(err) {
assert.fail('Error should not be emitted if there is callback');
assert.fail(`Error should not be emitted if there is callback: ${err}`);
}

function onError(err) {

0 comments on commit 92f766b

Please sign in to comment.