Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Return early if the buildinfo fails
  • Loading branch information
Emyrk committed Apr 24, 2023
commit 53851be9701c07e4f30145ea1a07db82e43fc797
2 changes: 2 additions & 0 deletions enterprise/wsproxy/wsproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ func (s *Server) healthReport(rw http.ResponseWriter, r *http.Request) {
primaryBuild, err := s.SDKClient.SDKClient.BuildInfo(ctx)
if err != nil {
report.Errors = append(report.Errors, fmt.Sprintf("failed to get build info: %s", err.Error()))
httpapi.Write(r.Context(), rw, http.StatusOK, report)
return
}

if primaryBuild.WorkspaceProxy {
Expand Down