Skip to content

Commit

Permalink
Simplify DAS error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Nov 14, 2020
1 parent f97248e commit 3316a95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ func Stack() string {
// ErrPropagate error helper function which can be used in defer ErrPropagate()
func ErrPropagate(api string) {
if err := recover(); err != nil {
log.Printf("ERROR: api %v, error %v\n", api, Stack())
log.Fatal("ERROR", fmt.Sprintf("%s:%s", api, err))
log.Fatal("ERROR: api %v, error %v, Stack: %v\n", api, err, Stack())
}
}

Expand Down

0 comments on commit 3316a95

Please sign in to comment.