cmd/up: fixed missing inputs error
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
79d2e726a2
commit
f185088d85
@ -2,6 +2,7 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"errors"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"cuelang.org/go/cue"
|
"cuelang.org/go/cue"
|
||||||
@ -88,7 +89,7 @@ func checkInputs(ctx context.Context, env *environment.Environment) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !warnOnly && len(notConcreteInputs) > 0 {
|
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
|
return nil
|
||||||
|
Reference in New Issue
Block a user