argument error
This commit is contained in:
parent
17b7ddf133
commit
ebcc61a9e7
7
app.js
7
app.js
@ -9,10 +9,11 @@ catch (error) {
|
||||
console.log("You have not installed all dependencies")
|
||||
console.log("Dependencies needed: express, showdown, crypto, date-fns, fs")
|
||||
console.log("crypto is for hashing passwords, don't worry, I'm not mining!")
|
||||
console.log("Error:\n",error)
|
||||
console.log(error)
|
||||
process.exit()
|
||||
}
|
||||
|
||||
if (process.argv[0] == "--first-time") {
|
||||
if (process.argv[2] == "--first-time") {
|
||||
initialise()
|
||||
}
|
||||
|
||||
@ -30,7 +31,7 @@ try {
|
||||
catch (error) {
|
||||
console.log("A file is missing!")
|
||||
console.log("Run with --first-time to initialise the program")
|
||||
console.log("Error output:\n", error)
|
||||
console.log(error)
|
||||
process.exit(1)
|
||||
}
|
||||
let converter = new showdown.Converter({
|
||||
|
@ -1 +1 @@
|
||||
241
|
||||
242
|
Loading…
x
Reference in New Issue
Block a user