tus / tusd

Reference server implementation in Go of tus: the open protocol for resumable file uploads
https://tus.github.io/tusd
MIT License
3.09k stars 480 forks source link

handler: unwrap errors using `errors.As` #1209

Closed mcdoker18 closed 1 month ago

mcdoker18 commented 1 month ago

A datastore may wrap errors with additional information. Before the fix, the error was converted to the InternalServerError type by the handler.