diff --git a/test/parallel/test-tls-enable-trace-cli.js b/test/parallel/test-tls-enable-trace-cli.js index 247a12759573ef..d41334a0f51d63 100644 --- a/test/parallel/test-tls-enable-trace-cli.js +++ b/test/parallel/test-tls-enable-trace-cli.js @@ -55,7 +55,13 @@ function test() { key: keys.agent6.key }, }, common.mustCall((err, pair, cleanup) => { - assert.ifError(err); + if (err) { + console.error(err); + console.error(err.opensslErrorStack); + console.error(err.reason); + assert(err); + } + return cleanup(); })); }