Skip to content

Commit

Permalink
return 500 when error
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Aug 20, 2018
1 parent 50cf9cf commit 6c5ba9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions src/kubernetes/containers.go

This file was deleted.

2 changes: 1 addition & 1 deletion src/server/handler_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func getContainerLogsHandler(ctx *web.Context) {

result, err := container.GetLogDetails(sp, namespace, podID, containerID, logSelector, usePreviousLogs)
if err != nil {
fmt.Errorf("failed to get the details of node: %v", err)
response.InternalServerError(req.Request, resp.ResponseWriter, fmt.Errorf("failed to get the details of node: %v", err))
return
}
resp.WriteHeaderAndEntity(http.StatusOK, result)
Expand Down

0 comments on commit 6c5ba9f

Please sign in to comment.