mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-24 05:17:24 +02:00
Merge pull request #115 from c0nnex/CrashFix
Fix crash on line without spaces
This commit is contained in:
commit
7e97976f8e
@ -208,7 +208,7 @@ func (f *FactorioServer) parseRunningCommand(std io.ReadCloser) (err error) {
|
||||
|
||||
line := strings.Fields(stdScanner.Text())
|
||||
// Ensure logline slice is in bounds
|
||||
if len(line) > 0 {
|
||||
if len(line) > 1 {
|
||||
// Check if Factorio Server reports any errors if so handle it
|
||||
if line[1] == "Error" {
|
||||
err := f.checkLogError(line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user