Skip to content

Commit 6c2486b

Browse files
committed
tls: improve debugging assertion
Refs: nodejs#22618
1 parent c8950cd commit 6c2486b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/_tls_wrap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function onhandshakestart(now) {
6464
debug('onhandshakestart');
6565

6666
const { lastHandshakeTime } = this;
67-
assert(now >= lastHandshakeTime);
67+
assert(now >= lastHandshakeTime,
68+
`now (${now}) < lastHandshakeTime (${lastHandshakeTime})`);
6869

6970
this.lastHandshakeTime = now;
7071

0 commit comments

Comments
 (0)