Skip to content

Commit

Permalink
Print error
Browse files Browse the repository at this point in the history
  • Loading branch information
IfCoffeeThenCode committed Mar 10, 2021
1 parent 8dd9ba7 commit f2eff28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssmconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func lookup(key string, opts *options, l Lookuper) (string, error) {
key = pl.prefix + key
}

return "", fmt.Errorf("%w: %s", ErrMissingRequired, key)
return "", fmt.Errorf("%w: %s: %s", ErrMissingRequired, key, err)
}

if opts.Default != "" {
Expand Down

0 comments on commit f2eff28

Please sign in to comment.