mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 11:10:07 +00:00
tree/compiler_recipe: Handle invalid tree path
If instead of abs path is used bash annotation now return an error related to wrong directory supply.
This commit is contained in:
@@ -56,6 +56,10 @@ func (r *CompilerRecipe) Load(path string) error {
|
||||
// the function that handles each file or dir
|
||||
var ff = func(currentpath string, info os.FileInfo, err error) error {
|
||||
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Error on walk path "+currentpath)
|
||||
}
|
||||
|
||||
if info.Name() != DefinitionFile {
|
||||
return nil // Skip with no errors
|
||||
}
|
||||
|
Reference in New Issue
Block a user