return err if not EOF
This commit is contained in:
parent
ca71a6db3c
commit
4ed0f1436a
|
@ -128,6 +128,7 @@ func ReadLine(filename string, prefix string) (string, error) {
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
return "", err
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(line, prefix) {
|
if strings.HasPrefix(line, prefix) {
|
||||||
return line, nil
|
return line, nil
|
||||||
|
|
Loading…
Reference in New Issue