From bfe9097f6653a186b518d90cc4191fbed08c18b3 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 25 May 2021 12:50:12 -0700 Subject: [PATCH] improve cue error displaying for plans Signed-off-by: Andrea Luzzardi --- dagger/environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagger/environment.go b/dagger/environment.go index cddf579f..b12673bf 100644 --- a/dagger/environment.go +++ b/dagger/environment.go @@ -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