Skip to content

Commit cf52274

Browse files
committed
[internal] minor improvements for webhooks
1 parent 5312ccd commit cf52274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sms-gateway/modules/webhooks/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (s *Service) Replace(userID string, webhook *smsgateway.Webhook) error {
8282
if webhook.DeviceID != nil {
8383
ok, err := s.devicesSvc.Exists(userID, devices.WithID(*webhook.DeviceID))
8484
if err != nil {
85-
return fmt.Errorf("failed to select devices: %w", err)
85+
return fmt.Errorf("failed to verify device ownership: %w", err)
8686
}
8787
if !ok {
8888
return newValidationError("device_id", *webhook.DeviceID, devices.ErrNotFound)

0 commit comments

Comments
 (0)