Skip to content

Commit

Permalink
Merge pull request #458 from carvel-dev/add-error-message
Browse files Browse the repository at this point in the history
Add error message when checking if file exists
  • Loading branch information
joaopapereira authored Feb 22, 2024
2 parents a141843 + 84d3fb2 commit a743210
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 a743210

Please sign in to comment.