Closed adriencaccia closed 6 months ago
When there is a client error during the retrieval of the upload data, the error is obfuscated. This prevents users from seeing helpful error messages to debug the problem.
See https://github.com/unjs/magic-regexp/actions/runs/7280511804/job/19839080023?pr=363#step:6:73 as an example
This PR ensures that when a client error is detected, it is returned to the user.
For example, Failed to retrieve upload data: 401 Unauthorized {"error":"Repository not found (or the token is invalid)"}
Failed to retrieve upload data: 401 Unauthorized {"error":"Repository not found (or the token is invalid)"}
When there is a client error during the retrieval of the upload data, the error is obfuscated. This prevents users from seeing helpful error messages to debug the problem.
See https://github.com/unjs/magic-regexp/actions/runs/7280511804/job/19839080023?pr=363#step:6:73 as an example
This PR ensures that when a client error is detected, it is returned to the user.
For example,
Failed to retrieve upload data: 401 Unauthorized {"error":"Repository not found (or the token is invalid)"}