summaryrefslogtreecommitdiff
path: root/lib/internal/crypto/keygen.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/crypto/keygen.js')
-rw-r--r--lib/internal/crypto/keygen.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/crypto/keygen.js b/lib/internal/crypto/keygen.js
index e212f6f451..cff58f15f2 100644
--- a/lib/internal/crypto/keygen.js
+++ b/lib/internal/crypto/keygen.js
@@ -46,7 +46,7 @@ function generateKeyPair(type, options, callback) {
const impl = check(type, options);
if (typeof callback !== 'function')
- throw new ERR_INVALID_CALLBACK();
+ throw new ERR_INVALID_CALLBACK(callback);
const wrap = new AsyncWrap(Providers.KEYPAIRGENREQUEST);
wrap.ondone = (ex, pubkey, privkey) => {