mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Update content/_code-samples/key-derivation/js/index.js
Added jonathanleis suggestion and switched console.log to a real error being thrown Co-authored-by: jonathanlei <jlei@ripple.com>
This commit is contained in:
@@ -62,7 +62,7 @@ class Seed {
|
|||||||
return decoded
|
return decoded
|
||||||
} else {
|
} else {
|
||||||
//Raise Error
|
//Raise Error
|
||||||
console.log('Raise error!')
|
throw new Error("incorrect decoded seed length")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user