Add development branch warning at startup

Add a big banner based warning telling this is the development branch
for clusterio to the startup of client.js and master.js.
This commit is contained in:
Hornwitser committed 2019-09-01 23:34:52 +02:00
1 parent 84f48e36f4
commit 703423ae54
2 files changed
+14

No files matched your search

+7
View File
@@ -20,6 +20,13 @@ const stringUtils = require("lib/stringUtils.js");
const configManager = require("lib/manager/configManager.js");
const hashFile = require('lib/hash').hashFile;
console.warn(`
+==========================================================+
I WARNING: This is the development branch for the 2.0 I
I version of clusterio. Expect things to break. I
+==========================================================+
`);
// argument parsing
const args = require('minimist')(process.argv.slice(2));
+7
View File
@@ -972,6 +972,13 @@ async function startServer() {
module.exports = app;
if (module === require.main) {
console.warn(`
+==========================================================+
I WARNING: This is the development branch for the 2.0 I
I version of clusterio. Expect things to break. I
+==========================================================+
`
);
startServer().catch(err => {
if (!(err instanceof StartupError)) {
console.error(`