mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
cmd/eofdump: clear up error handling
This commit is contained in:
parent
a17f843f8f
commit
ec62e60c3b
1 changed files with 1 additions and 2 deletions
|
|
@ -148,8 +148,7 @@ func eofParser(ctx *cli.Context) error {
|
|||
if t[l-1] == '\n' {
|
||||
t = t[:l-1] // remove newline
|
||||
}
|
||||
_, err := parseAndValidate(t, false)
|
||||
if err != nil {
|
||||
if _, err := parseAndValidate(t, false); err != nil {
|
||||
if err2 := errors.Unwrap(err); err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue