mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Fix error during slave authentication failure
Treat sending messages over a link that is not connected as a SessionLost error and handle AuthenticationFailed error in the startup logic of slave.
This commit is contained in:
1 parent
3dfed4d2ad
commit
07cff0ab9a
3 files changed
+13
-6
No files matched your search
@@ -1275,14 +1275,19 @@ I version of clusterio. Expect things to break. I
|
||||
`
|
||||
);
|
||||
startSlave().catch(err => {
|
||||
console.error(`
|
||||
if (err instanceof errors.AuthenticationFailed) {
|
||||
console.error(err.message);
|
||||
|
||||
} else {
|
||||
console.error(`
|
||||
+--------------------------------------------------------------+
|
||||
| Unexpected error occured while starting slave, please report |
|
||||
| it to https://github.com/clusterio/factorioClusterio/issues |
|
||||
+--------------------------------------------------------------+`
|
||||
);
|
||||
);
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user