mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
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:
1 parent
84f48e36f4
commit
703423ae54
2 files changed
+14
No files matched your search
@@ -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));
|
||||
|
||||
|
||||
@@ -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(`
|
||||
|
||||
Reference in new issue
Block a user