diff --git a/workflow-direct/main.go b/workflow-direct/main.go index 6aaaf9b..e965bcb 100644 --- a/workflow-direct/main.go +++ b/workflow-direct/main.go @@ -285,8 +285,10 @@ next_package: git.GitExecOrPanic(gitPrj, "rm", filename) isGitUpdated = true continue - } - if len(branch) == 0 { + } else if err != nil { + common.LogError("failed fetching repo data", org, filename, err) + continue + } else if len(branch) == 0 { branch = repo.DefaultBranch common.LogDebug(" -> using default branch", branch) if common.IsRemovedBranch(branch) {