pinsvc: do not set error descriptions

It is duplicated with "reason".
This commit is contained in:
Hector Sanjuan 2022-06-20 18:49:23 +02:00
parent bb8e8725e8
commit ff488e1fec

View File

@ -68,8 +68,7 @@ func NewConfig() *Config {
cfg.APIErrorFunc = func(err error, status int) error {
return pinsvc.APIError{
Details: pinsvc.APIErrorDetails{
Reason: err.Error(),
Details: err.Error(),
Reason: err.Error(),
},
}
}