You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have some "file not found" error messages, which are not super helpful, because they don't mention the file path that Sentry CLI was looking for.
We should add the file path to these error messages, to make them more actionable for users.
Ideally, whenever we attempt to open a file, we would add context to the error message which includes the name of the file we are trying to open, and perhaps some additional information about the context in which we are opening the file. For instance, if we are trying to open a sourcemap file at /path/to/sourcemap.map, we could make the error message something like the following:
Error while opening sourcemap `/path/to/sourcemap.map`: File not found
Exact format could look different, but we should aim to include this information in the error messages to make them more user-friendly.
The text was updated successfully, but these errors were encountered:
As of right now, it is quite difficult to trace through code to determine where "file not found" error messages are even coming from. This is because the string "file not found" does not appear in code, indicating the error likely comes from some dependency.
While trying to trace through and see what functions can fail, I noticed that we have several functions that cannot ever error, but which still return a Result. The existence of these functions makes it difficult to see what can actually fail in the code. Fortunately, we can enable the unnecessary_wraps Clippy lint to find these functions. Before trying to improve the file not found error messages, it likely makes sense to enable this lint to make it easier for us to find where the file not found errors might occur.
Currently, we have some "file not found" error messages, which are not super helpful, because they don't mention the file path that Sentry CLI was looking for.
We should add the file path to these error messages, to make them more actionable for users.
Ideally, whenever we attempt to open a file, we would add context to the error message which includes the name of the file we are trying to open, and perhaps some additional information about the context in which we are opening the file. For instance, if we are trying to open a sourcemap file at
/path/to/sourcemap.map
, we could make the error message something like the following:Exact format could look different, but we should aim to include this information in the error messages to make them more user-friendly.
The text was updated successfully, but these errors were encountered: