improve cue error displaying for plans

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-05-25 12:50:12 -07:00
parent 322ca54e58
commit bfe9097f66

View File

@ -103,7 +103,7 @@ func (e *Environment) LoadPlan(ctx context.Context, s Solver) error {
}
plan, err := compiler.Build(sources)
if err != nil {
return fmt.Errorf("plan config: %w", err)
return fmt.Errorf("plan config: %w", compiler.Err(err))
}
e.plan = plan