Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: Add some more error context in cli
  • Loading branch information
Emyrk committed Jun 13, 2022
commit 83078442a6bec76bd1a4707d1fe0c109d5f3aac0
2 changes: 1 addition & 1 deletion cli/templateupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down