Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend/dockerfile/dockerignore: remove hard-coded filename from error
While this function would usually be used for read a `.dockerignore` file, it accepts a Reader and can also be used to handle ignore patterns from other files (e.g. `Dockerfile.dockerignore`) or other sources. The error was also wrapped multiple times in some code-paths, which could lead to an error being formatted as: failed to parse dockerignore: error reading .dockerignore: <some error> Let's remove mention of the `.dockerignore` filename from the error, and leave it to the caller to include the filename. Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information