mirror of
https://github.com/tendermint/tendermint.git
synced 2026-10-01 12:15:45 +00:00
errors: formating cleanup (#7507)
This commit is contained in:
@@ -24,7 +24,7 @@ func main() {
|
||||
|
||||
f, err := os.Open(os.Args[1])
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("failed to open WAL file: %v", err))
|
||||
panic(fmt.Errorf("failed to open WAL file: %w", err))
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
@@ -34,12 +34,12 @@ func main() {
|
||||
if err == io.EOF {
|
||||
break
|
||||
} else if err != nil {
|
||||
panic(fmt.Errorf("failed to decode msg: %v", err))
|
||||
panic(fmt.Errorf("failed to decode msg: %w", err))
|
||||
}
|
||||
|
||||
json, err := tmjson.Marshal(msg)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("failed to marshal msg: %v", err))
|
||||
panic(fmt.Errorf("failed to marshal msg: %w", err))
|
||||
}
|
||||
|
||||
_, err = os.Stdout.Write(json)
|
||||
|
||||
Reference in New Issue
Block a user