Skip to content

Commit 3f91750

Browse files
committed
Fix missing name in required field error
1 parent 1f731cf commit 3f91750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssmconfig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (p *Provider) Process(configPath string, c interface{}) error {
7272
}
7373

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

7878
value, ok := params[field.name]

0 commit comments

Comments
 (0)