From 83078442a6bec76bd1a4707d1fe0c109d5f3aac0 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 13 Jun 2022 14:24:03 -0500 Subject: [PATCH] chore: Add some more error context in cli --- cli/templateupdate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/templateupdate.go b/cli/templateupdate.go index 32902aab3b518..80276fd9d66c9 100644 --- a/cli/templateupdate.go +++ b/cli/templateupdate.go @@ -91,7 +91,7 @@ func templateUpdate() *cobra.Command { } if templateVersion.Job.Status != codersdk.ProvisionerJobSucceeded { - return xerrors.New("job failed") + return xerrors.Errorf("job failed: %s", templateVersion.Job.Error) } err = client.UpdateActiveTemplateVersion(cmd.Context(), template.ID, codersdk.UpdateActiveTemplateVersion{