Throw error on invalid config

This commit is contained in:
SowinskiBraeden committed 2022-09-01 15:36:04 -07:00
1 parent 3ec70dcd54
commit 95a56bc2c8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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."
);