diff --git a/engine/cmd_download.go b/engine/cmd_download.go index 08addb1f69..3035c554ce 100644 --- a/engine/cmd_download.go +++ b/engine/cmd_download.go @@ -78,6 +78,9 @@ var downloadUICmd = &cobra.Command{ if conf.API == nil { sdk.Exit("Invalid configuration file") } + if conf.UI == nil { + sdk.Exit("Invalid configuration file - missing ui section") + } downloadTarGzFromGithub(conf.UI.Staticdir, "ui.tar.gz") }, } @@ -92,6 +95,9 @@ var downloadSQLCmd = &cobra.Command{ if conf.API == nil { sdk.Exit("Invalid configuration file") } + if conf.DatabaseMigrate == nil { + sdk.Exit("Invalid configuration file - missing databaseMigrate section") + } downloadTarGzFromGithub(conf.DatabaseMigrate.Directory, "sql.tar.gz") }, }