Skip to content

Commit

Permalink
minor: log wrapped error
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Mar 16, 2024
1 parent dfcc9fa commit fe9b55c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getparty.go
Expand Up @@ -133,9 +133,9 @@ func (cmd Cmd) Exit(err error) int {
return 2
case ExpectedError:
if cause == ErrBadInvariant {
log.Default().Println(cause)
log.Default().Println(err)
} else {
cmd.logError(cause)
cmd.logError(err)
}
return 1
default:
Expand Down

0 comments on commit fe9b55c

Please sign in to comment.