Skip to content

Commit cb7bca2

Browse files
committed
added missing err check
1 parent 1e74a0d commit cb7bca2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/bundle/generate/app.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ func getAppConfig(ctx context.Context, app *apps.App, w *databricks.WorkspaceCli
136136

137137
cmdio.LogString(ctx, fmt.Sprintf("Reading app configuration from %s", configFile))
138138
content, err := io.ReadAll(r)
139+
if err != nil {
140+
return nil, err
141+
}
139142

140143
var appConfig map[string]interface{}
141144
err = yaml.Unmarshal(content, &appConfig)

0 commit comments

Comments
 (0)