Fix error handling in server.js
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-17 17:29:16 +02:00
parent 4f4a1af599
commit 0b9e8be471

View File

@@ -22,7 +22,7 @@ try {
setup = JSON.parse(fs.readFileSync(path.join(__dirname, 'data', 'setup.json'), 'utf8')); setup = JSON.parse(fs.readFileSync(path.join(__dirname, 'data', 'setup.json'), 'utf8'));
} catch (err) { } catch (err) {
console.error('Error reading setup.json:', err); console.error('Error reading setup.json:', err);
process.exit(1); setup = {};
} }
if (setup.discord !== undefined) { if (setup.discord !== undefined) {