fix: catch error if progressbar could not be reset

This commit is contained in:
Simon Cornet 2025-03-05 13:28:17 +01:00
commit bbe968567c

View file

@ -59,7 +59,10 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
} }
repoCount := len(repositories) repoCount := len(repositories)
bar.Set(0) err = bar.Set(0)
if err != nil {
logFatal("Could not reset the progressbar", err)
}
bar.ChangeMax(repoCount) bar.ChangeMax(repoCount)
logPrint("HTTP: Returning repositories found", nil) logPrint("HTTP: Returning repositories found", nil)