Skip to content

Commit

Permalink
Fix missing name in required field error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlopshire committed Apr 8, 2020
1 parent 1f731cf commit 3f91750
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 @@ -72,7 +72,7 @@ func (p *Provider) Process(configPath string, c interface{}) error {
}

if _, ok := invalidPrams[field.name]; ok && field.required {
return errors.Errorf("ssmconfig: %s is required", invalidPrams[field.name])
return errors.Errorf("ssmconfig: %s is required", field.name)
}

value, ok := params[field.name]
Expand Down

0 comments on commit 3f91750

Please sign in to comment.