diff --git a/do/serverless.go b/do/serverless.go index 493674fd0..52ca94a20 100644 --- a/do/serverless.go +++ b/do/serverless.go @@ -777,6 +777,9 @@ func (s *serverlessService) GetHostInfo(APIHost string) (ServerlessHostInfo, err } defer resp.Body.Close() body, err := io.ReadAll(resp.Body) + if err != nil { + return ServerlessHostInfo{}, err + } var result ServerlessHostInfo err = json.Unmarshal(body, &result) return result, err diff --git a/internal/apps/builder/cnb.go b/internal/apps/builder/cnb.go index e9bbfcc64..2f334c514 100644 --- a/internal/apps/builder/cnb.go +++ b/internal/apps/builder/cnb.go @@ -231,6 +231,9 @@ func (b *CNBComponentBuilder) buildStaticSiteImage(ctx context.Context) error { return err } assetsPath, err = filepath.Rel(workspacePath, assetsPath) + if err != nil { + return err + } if assetsPath == "." { assetsPath = "./" } else {