From 630564b04e951af83963d9c9e153dcb6f9f36e0a Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Mon, 2 Dec 2024 16:07:03 +0100 Subject: [PATCH] added missing err check --- cmd/bundle/generate/app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/bundle/generate/app.go b/cmd/bundle/generate/app.go index a10680df..2c0b6583 100644 --- a/cmd/bundle/generate/app.go +++ b/cmd/bundle/generate/app.go @@ -136,6 +136,9 @@ func getAppConfig(ctx context.Context, app *apps.App, w *databricks.WorkspaceCli cmdio.LogString(ctx, fmt.Sprintf("Reading app configuration from %s", configFile)) content, err := io.ReadAll(r) + if err != nil { + return nil, err + } var appConfig map[string]interface{} err = yaml.Unmarshal(content, &appConfig)