log/return currency error

This commit is contained in:
Hayden 2024-01-05 13:54:54 -06:00
parent 50bbb38321
commit c1bcb80860
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -57,7 +57,7 @@ func (ctrl *V1Controller) HandleGroupUpdate() errchain.HandlerFunc {
ok := ctrl.svc.Currencies.IsSupported(body.Currency) ok := ctrl.svc.Currencies.IsSupported(body.Currency)
if !ok { if !ok {
return repo.Group{}, validate.NewFieldErrors( return repo.Group{}, validate.NewFieldErrors(
validate.NewFieldError("currency", "currency is not supported"), validate.NewFieldError("currency", "currency '" + body.Currency + "' is not supported"),
) )
} }