From f185088d8578f6ae08c4dd532a1f8f0e4acbb984 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Tue, 13 Jul 2021 16:37:37 +0200 Subject: [PATCH] cmd/up: fixed missing inputs error Signed-off-by: Sam Alba --- cmd/dagger/cmd/up.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/dagger/cmd/up.go b/cmd/dagger/cmd/up.go index c3f55597..b438edd6 100644 --- a/cmd/dagger/cmd/up.go +++ b/cmd/dagger/cmd/up.go @@ -2,6 +2,7 @@ package cmd import ( "context" + "errors" "os" "cuelang.org/go/cue" @@ -88,7 +89,7 @@ func checkInputs(ctx context.Context, env *environment.Environment) error { } if !warnOnly && len(notConcreteInputs) > 0 { - lg.Error().Int("missing", len(notConcreteInputs)).Msg("some required inputs are not set, please re-run with `--force` if you think it's a mistake") + return errors.New("some required inputs are not set, please re-run with `--force` if you think it's a mistake") } return nil