rilldata / rill

Rill is a tool for effortlessly transforming data sets into powerful, opinionated dashboards using SQL. BI-as-code.
https://www.rilldata.com
Apache License 2.0
1.73k stars 117 forks source link

Remove internal status from ctx cancelled errors #6014

Closed begelundmuller closed 3 weeks ago

begelundmuller commented 3 weeks ago

There is middleware that returns context errors with the appropriate status codes, falling back to the internal error code for unknown errors. By returning errors directly instead of coercing them to strings, the middleware is able to handle them correctly.

This issue is prevalent across the code base, this PR does not tackle all instances of it, but it's a step in the right direction.