arnaucube
arnaucube/snarkjsPublic Self-hosted repository
Check invalid command
Jordi Baylina jordi@baylina.cat
Sun, 21 Oct 2018 20:29:54 +0200
commit

60e1ce4c4119314622ecb208b92ad5350113e8ef

parent

f4cab2e9ed200a4a433a5808c8732f64cc906ba1

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M cli.js → cli.js

@@ -340,6 +340,8 @@ `[${inputs}]` ;

console.log(S); process.exit(0); + } else { + throw new Error("Invalid Command"); } } catch(err) { console.log("ERROR: " + err);