feat(prebuild): add err reporting to builder & directive tasks.
This commit is contained in:
parent
865ce4c66b
commit
02e3334949
19 changed files with 108 additions and 53 deletions
|
|
@ -84,9 +84,15 @@ func Build() error {
|
|||
return err
|
||||
}
|
||||
for _, b := range builder.Builds {
|
||||
profile = b.Apply(profile)
|
||||
profile, err = b.Apply(profile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
profile, err = directive.Run(file, profile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
profile = directive.Run(file, profile)
|
||||
if err := file.WriteFile([]byte(profile)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue