argument error

This commit is contained in:
deadvey 2025-07-13 00:32:45 +01:00
parent 17b7ddf133
commit ebcc61a9e7
2 changed files with 5 additions and 4 deletions

7
app.js
View File

@ -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({

View File

@ -1 +1 @@
241
242