mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 15:33:12 +09:00
Error message when started without instanceName
And some test coverage
This commit is contained in:
1 parent
e6da33582c
commit
5de0b6319c
3 files changed
+6
-1
No files matched your search
@@ -111,6 +111,10 @@ if (!command || command == "help" || command == "--help") {
|
||||
console.log("Downloaded "+name);
|
||||
});
|
||||
}
|
||||
} else if (command == "start" && instance === undefined) {
|
||||
console.log("ERROR: No instanceName provided!");
|
||||
console.log("Usage: node client.js start [instanceName]");
|
||||
process.exit(0);
|
||||
} else if (command == "start" && typeof instance == "string" && instance != "/" && !fs.existsSync(instancedirectory)) {
|
||||
// if instance does not exist, create it
|
||||
console.log("Creating instance...");
|
||||
|
||||
Reference in new issue
Block a user