mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
chore: Add some more error context in cli (#2301)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user