And you might like:
if _, err := somethingThatFails(arg); err != nil {
return fmt.Errorf("failed with arg=%v, %v", arg, err)
}
The difference from your example is that the info in `err` is not lost when passed up.