Check invalid command
This commit is contained in:
parent
f4cab2e9ed
commit
60e1ce4c41
2
cli.js
2
cli.js
@ -340,6 +340,8 @@ try {
|
|||||||
|
|
||||||
console.log(S);
|
console.log(S);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
} else {
|
||||||
|
throw new Error("Invalid Command");
|
||||||
}
|
}
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.log("ERROR: " + err);
|
console.log("ERROR: " + err);
|
||||||
|
Loading…
Reference in New Issue
Block a user