Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gateway: restore original filename in ReadFile error message
All messages returned by os.Open are guaranteed to return a PathError. However, as these error messages are printed, they include the temporary directory for the mounted reference which is not useful to the caller. On an error, we can restore the filename in the PathError to the requested filename, as also seen in os.DirFS. Signed-off-by: Justin Chadwell <[email protected]>
- Loading branch information