improve cue error displaying for plans
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
322ca54e58
commit
bfe9097f66
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user