| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c604d88 commit fde8523
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -479,7 +479,9 @@ function parseKeyEncoding(enc, keyType, isPublic, objName) { | |||
| 479 | 479 | encodingNames[type], 'does not support encryption'); | |
| 480 | 480 | } | |
| 481 | 481 | } else if (passphrase !== undefined) { | |
| 482 | - throw new ERR_INVALID_ARG_VALUE(option('cipher', objName), cipher); | ||
| 482 | + throw new ERR_INVALID_ARG_VALUE( | ||
| 483 | + option('cipher', objName), cipher, | ||
| 484 | + 'is required when a passphrase is specified'); | ||
| 483 | 485 | } | |
| 484 | 486 | } | |
| 485 | 487 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1014,7 +1014,8 @@ if (!process.features.openssl_is_boringssl) { | |||
| 1014 | 1014 | }, { | |
| 1015 | 1015 | name: 'TypeError', | |
| 1016 | 1016 | code: 'ERR_INVALID_ARG_VALUE', | |
| 1017 | - message: "The property 'options.cipher' is invalid. Received undefined" | ||
| 1017 | + message: "The property 'options.cipher' is required when a " + | ||
| 1018 | + 'passphrase is specified. Received undefined', | ||
| 1018 | 1019 | }); | |
| 1019 | 1020 | } | |
| 1020 | 1021 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments