crypto: improve errors in DiffieHellmanGroup
- The
DiffieHellmanGroup
class is only instantiated from within Node.js, which always passes exactly one argument. - Use the existing
ERR_CRYPTO_UNKNOWN_DH_GROUP
error code for the existing "Unknown group" error. The message has not been changed to prevent breaking existing applications.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines