Update pkg/storage/unified/sql/backend.go

Co-authored-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
Georges Chaudy
2024-07-12 18:32:13 +02:00
committed by GitHub
co-authored by Dan Cech
parent dd383150bf
commit a64f88b0ea
+1 -1
View File
@@ -283,7 +283,7 @@ func (b *backend) delete(ctx context.Context, event resource.WriteEvent) (int64,
}
count, err := res.RowsAffected()
if err != nil {
return fmt.Errorf("update into resource: %w", err)
return fmt.Errorf("delete resource: %w", err)
}
if count == 0 {
return fmt.Errorf("no rows affected")