mirror of
https://github.com/mudler/luet.git
synced 2025-09-01 23:37:07 +00:00
tree/compiler_recipe: Return right error message
This commit is contained in:
@@ -80,11 +80,15 @@ func (r *CompilerRecipe) Load(path string) error {
|
|||||||
if helpers.Exists(compileDefPath) {
|
if helpers.Exists(compileDefPath) {
|
||||||
dat, err = ioutil.ReadFile(compileDefPath)
|
dat, err = ioutil.ReadFile(compileDefPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "Error reading file "+currentpath)
|
return errors.Wrap(err,
|
||||||
|
"Error reading file "+CompilerDefinitionFile+" from "+
|
||||||
|
filepath.Dir(currentpath))
|
||||||
}
|
}
|
||||||
packbuild, err := pkg.DefaultPackageFromYaml(dat)
|
packbuild, err := pkg.DefaultPackageFromYaml(dat)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "Error reading yaml "+currentpath)
|
return errors.Wrap(err,
|
||||||
|
"Error reading yaml "+CompilerDefinitionFile+" from "+
|
||||||
|
filepath.Dir(currentpath))
|
||||||
}
|
}
|
||||||
pack.Requires(packbuild.GetRequires())
|
pack.Requires(packbuild.GetRequires())
|
||||||
pack.Conflicts(packbuild.GetConflicts())
|
pack.Conflicts(packbuild.GetConflicts())
|
||||||
|
Reference in New Issue
Block a user