Skip to content

Commit 7e97976

Browse files
authored
Merge pull request #115 from c0nnex/CrashFix
Fix crash on line without spaces
2 parents ebf4761 + 8acadcc commit 7e97976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factorio_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func (f *FactorioServer) parseRunningCommand(std io.ReadCloser) (err error) {
208208

209209
line := strings.Fields(stdScanner.Text())
210210
// Ensure logline slice is in bounds
211-
if len(line) > 0 {
211+
if len(line) > 1 {
212212
// Check if Factorio Server reports any errors if so handle it
213213
if line[1] == "Error" {
214214
err := f.checkLogError(line)

0 commit comments

Comments
 (0)