tracking-exposed / trex

youtube & tiktok analysis + youchoose recommendation custmizer. backend, extensions, and tooling
https://docs.tracking.exposed
GNU Affero General Public License v3.0
52 stars 15 forks source link

fix: better error definition #779

Closed ascariandrea closed 1 year ago

ascariandrea commented 1 year ago

I removed the definition of BackendError cause it was overlapping with APIError and APPError. I then used the helpers toAPIError and toAPPError in proper places to return consistent errors.