diff options
author | 0neGal <mail@0negal.com> | 2023-07-22 16:09:41 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-07-22 16:09:41 +0200 |
commit | 11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02 (patch) | |
tree | 29fbc46781019ccc19c53664a27042acd4112f25 /src/modules/settings.js | |
parent | e984cf81b7fd84c44fb39206c639c35a44c6054c (diff) | |
download | Viper-11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02.tar.gz Viper-11f2bc2de10e5ec7bb8a8b102855e9b7f0122c02.zip |
colored console logging
Far prettier, and far more useful at a glance.
Diffstat (limited to 'src/modules/settings.js')
-rw-r--r-- | src/modules/settings.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/settings.js b/src/modules/settings.js index 76326cc..3b60d7f 100644 --- a/src/modules/settings.js +++ b/src/modules/settings.js @@ -5,6 +5,8 @@ const app = require("electron").app; const json = require("./json"); const lang = require("../lang"); +console = require("./console"); + var invalid_settings = false; // base settings @@ -47,7 +49,7 @@ if (fs.existsSync("viper.json")) { settings.nsargs = fs.readFileSync(args, "utf8"); } } else { - console.log(lang("general.missingpath")); + console.error(lang("general.missingpath")); } // as to not have to do the same one liner a million times, this |