From a584f5c9d27e4580a394b902bd98a2e924497fb0 Mon Sep 17 00:00:00 2001 From: AlexanderBuzz <102560752+AlexanderBuzz@users.noreply.github.com> Date: Fri, 16 Sep 2022 08:21:12 +0200 Subject: [PATCH] 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 --- content/_code-samples/key-derivation/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_code-samples/key-derivation/js/index.js b/content/_code-samples/key-derivation/js/index.js index 07f4c91bf2..ee93bf68b6 100644 --- a/content/_code-samples/key-derivation/js/index.js +++ b/content/_code-samples/key-derivation/js/index.js @@ -62,7 +62,7 @@ class Seed { return decoded } else { //Raise Error - console.log('Raise error!') + throw new Error("incorrect decoded seed length") } }