fix: catch error if progressbar could not be reset
This commit is contained in:
parent
f22da9364c
commit
bbe968567c
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue