Skip to content

Commit

Permalink
chore: witherror
Browse files Browse the repository at this point in the history
  • Loading branch information
Gornak40 committed Nov 17, 2024
1 parent 2bad15d commit 34df849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/shoga/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
}
r, err := call(csid)
if err != nil {
logrus.WithField("mode", *mode).Fatal("dump failed")
logrus.WithError(err).WithField("mode", *mode).Fatal("dump failed")
}
if _, err := io.Copy(os.Stdout, r); err != nil {
logrus.WithError(err).Fatal("write dumped content failed")
Expand Down

0 comments on commit 34df849

Please sign in to comment.