Skip to content

Commit

Permalink
Merge pull request #12 from lysu/dev-make-errors-trace-inline
Browse files Browse the repository at this point in the history
errors: make errors.Trace mid-stack inlineable
  • Loading branch information
ngaut authored Mar 18, 2019
2 parents 1176802 + 08948d8 commit 8abfc13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions juju_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (

// Trace just calls AddStack.
func Trace(err error) error {
if err == nil {
return nil
}
return AddStack(err)
}

Expand Down

0 comments on commit 8abfc13

Please sign in to comment.