Skip to content

Commit 94d99c6

Browse files
fix(app): improve error message
Issue: BG-34381
1 parent 336dea0 commit 94d99c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/sign.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const promptForConfirmationAndKey = function(recoveryRequest, outputs, skipConfi
132132
* Gets the backup private key that can be used to sign the transaction.
133133
* @param xprv The provided extended private key (BIP32).
134134
* @param expectedXpub The public key specified with the request.
135-
* @returns Buffer - the private key buffer to sign the transaction.
135+
* @returns {Buffer} - the private key buffer to sign the transaction.
136136
*/
137137
const getBackupSigningKey = function(xprv, expectedXpub) {
138138
return getHDNodeAndVerify(xprv, expectedXpub).privateKey;
@@ -430,7 +430,7 @@ const parseKey = co(function *(rawkey, coin, path) {
430430

431431
}
432432
if (path) {
433-
throw new Error(`cannot derive key with path`)
433+
throw new Error('can only derive subkey from bip32 xprv');
434434
}
435435
// if it doesn't have commas or a path, return unchanged input
436436
return rawkey;

0 commit comments

Comments
 (0)