Throw error on invalid config
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -17,7 +17,7 @@ class QuarksBot extends Client {
|
||||
this.logger = new Logger(path.join(__dirname, "..", "logs/Logs.log"));
|
||||
|
||||
if (this.config.Token === "")
|
||||
return new TypeError(
|
||||
throw new TypeError(
|
||||
"The config.js is not filled out. Please make sure nothing is blank, otherwise the bot will not work properly."
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user