Skip to content

Commit 3a3c892

Browse files
committed
chore(dyn): more information on bad request error
1 parent cd37ab1 commit 3a3c892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/settings/providers/dyn/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (p *Provider) Update(ctx context.Context, client *http.Client, ip net.IP) (
137137
case strings.HasPrefix(s, constants.Notfqdn):
138138
return nil, errors.ErrHostnameNotExists
139139
case strings.HasPrefix(s, "badrequest"):
140-
return nil, errors.ErrBadRequest
140+
return nil, fmt.Errorf("%w: %s", errors.ErrBadRequest, strings.TrimPrefix(s, "badrequest"))
141141
case strings.HasPrefix(s, "good"):
142142
return ip, nil
143143
default:

0 commit comments

Comments
 (0)