Skip to content

Commit c0e3af1

Browse files
committed
tls: improve debugging assertion
Refs: #22618 PR-URL: #22625 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent f423231 commit c0e3af1

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)