Skip to content

chore: Allow editing proxy fields via api. #7435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 9, 2023
Prev Previous commit
Next Next commit
Return the right error
  • Loading branch information
Emyrk committed May 5, 2023
commit 4865ff8e9da219945933a0f13bfae3a1871b31d2
6 changes: 3 additions & 3 deletions enterprise/cli/workspaceproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *RootCmd) regenerateProxyToken() *clibase.Cmd {
return err
}
_, err = fmt.Fprintln(inv.Stdout, output)
return nil
return err
},
}
formatter.AttachOptions(&cmd.Options)
Expand Down Expand Up @@ -155,7 +155,7 @@ func (r *RootCmd) patchProxy() *clibase.Cmd {
return xerrors.Errorf("format response: %w", err)
}
_, err = fmt.Fprintln(inv.Stdout, output)
return nil
return err
},
}

Expand Down Expand Up @@ -241,7 +241,7 @@ func (r *RootCmd) createProxy() *clibase.Cmd {
return err
}
_, err = fmt.Fprintln(inv.Stdout, output)
return nil
return err
},
}

Expand Down