Skip to content

Commit 555b987

Browse files
authored
error handling (#6684)
1 parent 00c44f5 commit 555b987

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/k8s/application/k8sApplicationService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ func (impl *K8sApplicationServiceImpl) GetPodLogs(ctx context.Context, request *
434434
restConfig, err := impl.k8sCommonService.GetRestConfigOfCluster(ctx, request)
435435
if err != nil {
436436
impl.logger.Errorw("error in getting rest config by clusterId", "err", err, "clusterId", clusterId, "")
437+
return nil, err
437438
}
438439
resp, err := impl.K8sUtil.GetPodLogs(ctx, restConfig, resourceIdentifier.Name, resourceIdentifier.Namespace, podLogsRequest.SinceTime, podLogsRequest.TailLines, podLogsRequest.SinceSeconds, podLogsRequest.Follow, podLogsRequest.ContainerName, podLogsRequest.IsPrevContainerLogsEnabled)
439440
if err != nil {

0 commit comments

Comments
 (0)