Merge pull request #1161 from grouville/fix-regression-logs
Fix error printing regression w/ wrong Cue
This commit is contained in:
commit
3d9de416f2
@ -195,7 +195,7 @@ var computeCmd = &cobra.Command{
|
|||||||
|
|
||||||
env, err := environment.New(st)
|
env, err := environment.New(st)
|
||||||
if err != nil {
|
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 {
|
err = cl.Do(ctx, env.Context(), func(ctx context.Context, s solver.Solver) error {
|
||||||
|
@ -79,7 +79,7 @@ var editCmd = &cobra.Command{
|
|||||||
|
|
||||||
env, err := environment.New(st)
|
env, err := environment.New(st)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lg.Fatal().Msg("unable to create environment")
|
lg.Fatal().Err(err).Msg("unable to create environment")
|
||||||
}
|
}
|
||||||
|
|
||||||
cl := common.NewClient(ctx)
|
cl := common.NewClient(ctx)
|
||||||
|
@ -43,7 +43,7 @@ var listCmd = &cobra.Command{
|
|||||||
|
|
||||||
env, err := environment.New(st)
|
env, err := environment.New(st)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lg.Fatal().Msg("unable to create environment")
|
lg.Fatal().Err(err).Msg("unable to create environment")
|
||||||
}
|
}
|
||||||
|
|
||||||
cl := common.NewClient(ctx)
|
cl := common.NewClient(ctx)
|
||||||
|
@ -55,7 +55,7 @@ func updateEnvironmentInput(ctx context.Context, cmd *cobra.Command, target stri
|
|||||||
|
|
||||||
env, err := environment.New(st)
|
env, err := environment.New(st)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lg.Fatal().Msg("unable to create environment")
|
lg.Fatal().Err(err).Msg("unable to create environment")
|
||||||
}
|
}
|
||||||
|
|
||||||
cl := common.NewClient(ctx)
|
cl := common.NewClient(ctx)
|
||||||
|
@ -42,7 +42,7 @@ var listCmd = &cobra.Command{
|
|||||||
|
|
||||||
env, err := environment.New(st)
|
env, err := environment.New(st)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lg.Fatal().Msg("unable to create environment")
|
lg.Fatal().Err(err).Msg("unable to create environment")
|
||||||
}
|
}
|
||||||
|
|
||||||
cl := common.NewClient(ctx)
|
cl := common.NewClient(ctx)
|
||||||
|
@ -63,7 +63,7 @@ var upCmd = &cobra.Command{
|
|||||||
|
|
||||||
env, err := environment.New(st)
|
env, err := environment.New(st)
|
||||||
if err != nil {
|
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 {
|
err = cl.Do(ctx, env.Context(), func(ctx context.Context, s solver.Solver) error {
|
||||||
|
Reference in New Issue
Block a user