diff --git a/lib/internal/quic/util.js b/lib/internal/quic/util.js index 2116c777238503..e2aa07a4560c14 100644 --- a/lib/internal/quic/util.js +++ b/lib/internal/quic/util.js @@ -405,11 +405,11 @@ function validateQuicClientSessionOptions(options = {}) { if (typeof dcid_value === 'string') { // If it's a string, it must be a hex encoded string try { - dcid = Buffer.from(dcid_value, 'hex'); + Buffer.from(dcid_value, 'hex'); } catch { throw new ERR_INVALID_ARG_VALUE( 'options.dcid', - dcid, + dcid_value, 'is not a valid QUIC connection ID'); } }