Skip to content

Commit

Permalink
Add error message when checking if file exists
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Pereira <[email protected]>
  • Loading branch information
joaopapereira committed Feb 22, 2024
1 parent 7b1a34b commit 84d3fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kbld/resources/file_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewFileResources(file string) ([]FileResource, error) {
default:
fileInfo, err := os.Stat(file)
if err != nil {
return nil, fmt.Errorf("Checking file '%s'", file)
return nil, fmt.Errorf("Unable to stat file: %s", err)
}

if fileInfo.IsDir() {
Expand Down

0 comments on commit 84d3fb2

Please sign in to comment.