Skip to content

Commit 36b6b05

Browse files
Trotttargos
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6e9a1b2 commit 36b6b05

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)