Better diagnostics for download errors#23635
Conversation
| | { code: "protocol-violation"; url: URL } | ||
| | { code: "is-html"; url: URL } | ||
| | { code: "fs-error"; path: string } | ||
| | { code: "fs-error"; path: string; errno?: string } |
There was a problem hiding this comment.
I really despise this. Node's is incredibly inconsistent when it comes to error data and the error codes it provides are terrible. This is why I went to great lengths for the new FS abstraction to use proper meaningful errors:
Vortex/src/main/src/filesystem/backend.ts
Lines 31 to 91 in 3b483b6
There was a problem hiding this comment.
We would need to add support for FileSystemError inside the downloader, because right not it's not properly setup. It seems to be a way bigger PR comparing to this. I mainly wanted to get diagnostics immediately to see whether we have any errors that should be handled.
So the question is, do you want to properly add support for FileSystemError instead of doing this diagnostics PR? I'm fine with going the proper route here, this is not a critical thing AFAIK
There was a problem hiding this comment.
@erri120 I did exactly that, what's you opinion on this approach?
…other packages Moved FS errors into the contract package FS errors now use our semantic error handling
|
This PR has been marked as stale due to inactivity. |
We still don't know the roo cases, lets make sure the code is being passed
Closes LAZ-697