Skip to content

Commit d802393

Browse files
TrottMylesBorins
authored andcommitted
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>
1 parent 574b0f2 commit d802393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/internet/test-dgram-send-cb-quelches-error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function callbackOnly(err) {
2828
}
2929

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

3434
function onError(err) {

0 commit comments

Comments
 (0)