Skip to content

Commit a5d8f3d

Browse files
committed
remove bug: returning nil pointer with nil error
1 parent ef16820 commit a5d8f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/orchestrator/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func getAppStatusByPath(
158158

159159
app := parseAppStatus(containers)
160160
if len(app) == 0 {
161-
return nil, nil
161+
return nil, fmt.Errorf("containers found for path %s but failed to parse app status", pathLabel)
162162
}
163163
return &app[0], nil
164164
}

0 commit comments

Comments
 (0)