mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
cmd/evm: propagate statetest stdin scanner errors
The stdin scanner loop ignores scanner.Err(), so read errors (e.g., underlying IO issues or overly long lines) will be silently swallowed and reported as success. After the scan loop, check scanner.Err() and return it if non-nil.
This commit is contained in:
parent
89c1c16a46
commit
bc238a02b3
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,9 @@ func stateTestCmd(ctx *cli.Context) error {
|
|||
}
|
||||
report(ctx, results)
|
||||
}
|
||||
if err := scanner.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue