From 60e1ce4c4119314622ecb208b92ad5350113e8ef Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Sun, 21 Oct 2018 20:29:54 +0200 Subject: [PATCH] Check invalid command --- cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli.js b/cli.js index 06c482d..8fa4b51 100644 --- a/cli.js +++ b/cli.js @@ -340,6 +340,8 @@ try { console.log(S); process.exit(0); + } else { + throw new Error("Invalid Command"); } } catch(err) { console.log("ERROR: " + err);