Merge pull request #1161 from grouville/fix-regression-logs

Fix error printing regression w/ wrong Cue
This commit is contained in:
Andrea Luzzardi 2021-11-23 15:13:32 -08:00 committed by GitHub
commit 3d9de416f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -195,7 +195,7 @@ var computeCmd = &cobra.Command{
env, err := environment.New(st)
if err != nil {
lg.Fatal().Msg("unable to create environment")
lg.Fatal().Err(err).Msg("unable to create environment")
}
err = cl.Do(ctx, env.Context(), func(ctx context.Context, s solver.Solver) error {

View File

@ -79,7 +79,7 @@ var editCmd = &cobra.Command{
env, err := environment.New(st)
if err != nil {
lg.Fatal().Msg("unable to create environment")
lg.Fatal().Err(err).Msg("unable to create environment")
}
cl := common.NewClient(ctx)

View File

@ -43,7 +43,7 @@ var listCmd = &cobra.Command{
env, err := environment.New(st)
if err != nil {
lg.Fatal().Msg("unable to create environment")
lg.Fatal().Err(err).Msg("unable to create environment")
}
cl := common.NewClient(ctx)

View File

@ -55,7 +55,7 @@ func updateEnvironmentInput(ctx context.Context, cmd *cobra.Command, target stri
env, err := environment.New(st)
if err != nil {
lg.Fatal().Msg("unable to create environment")
lg.Fatal().Err(err).Msg("unable to create environment")
}
cl := common.NewClient(ctx)

View File

@ -42,7 +42,7 @@ var listCmd = &cobra.Command{
env, err := environment.New(st)
if err != nil {
lg.Fatal().Msg("unable to create environment")
lg.Fatal().Err(err).Msg("unable to create environment")
}
cl := common.NewClient(ctx)

View File

@ -63,7 +63,7 @@ var upCmd = &cobra.Command{
env, err := environment.New(st)
if err != nil {
lg.Fatal().Msg("unable to create environment")
lg.Fatal().Err(err).Msg("unable to create environment")
}
err = cl.Do(ctx, env.Context(), func(ctx context.Context, s solver.Solver) error {