mirror of https://github.com/databricks/cli.git
added missing err check
This commit is contained in:
parent
38bce2681b
commit
630564b04e
|
@ -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))
|
cmdio.LogString(ctx, fmt.Sprintf("Reading app configuration from %s", configFile))
|
||||||
content, err := io.ReadAll(r)
|
content, err := io.ReadAll(r)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
var appConfig map[string]interface{}
|
var appConfig map[string]interface{}
|
||||||
err = yaml.Unmarshal(content, &appConfig)
|
err = yaml.Unmarshal(content, &appConfig)
|
||||||
|
|
Loading…
Reference in New Issue