From a9f75dd0b70f62119803e3c8752f3c04ec924129 Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 14 Jul 2021 14:24:06 -0600 Subject: [PATCH] added share/ to .gitignore; silently ignore acceptable error on setup --- .gitignore | 5 ++++- setup.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4bd0768..d339572 100755 --- a/.gitignore +++ b/.gitignore @@ -117,4 +117,7 @@ uploads/ config.json # certificates -*.crt \ No newline at end of file +*.crt + +# share/ directory +share/ \ No newline at end of file diff --git a/setup.js b/setup.js index 47c6e99..d1b21bd 100755 --- a/setup.js +++ b/setup.js @@ -36,7 +36,7 @@ function doSetup() { const existingConfig = require('./config.json'); Object.keys(existingConfig).forEach((key) => Object.prototype.hasOwnProperty.call(config, key) && (config[key] = existingConfig[key])) } catch (ex) { - if (ex.code !== 'MODULE_NOT_FOUND') log.error(ex); + if (ex.code !== 'MODULE_NOT_FOUND' && !ex.toString().includes('Unexpected end')) log.error(ex); } // Disabled the annoying "prompt: " prefix and removes colours