Merge pull request #8081 from dokku/guard-app-json-name

Error out if the appname or app.json is missing when retrieving cron entries
This commit is contained in:
Jose Diaz-Gonzalez
2025-11-07 23:59:08 -05:00
committed by GitHub

View File

@@ -79,6 +79,10 @@ func FetchCronEntries(input FetchCronEntriesInput) ([]TemplateCommand, error) {
commands := []TemplateCommand{}
isMaintenance := reportComputedMaintenance(appName) == "true"
if input.AppJSON == nil && input.AppName == "" {
return commands, fmt.Errorf("Missing app name or app.json")
}
if input.AppJSON == nil {
appJSON, err := appjson.GetAppJSON(appName)
if err != nil {