mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 20:22:01 -06:00
Add newline on download progress failure
This commit is contained in:
parent
8e791f7e8b
commit
36ecbb0cd7
2 changed files with 10 additions and 0 deletions
|
|
@ -190,6 +190,11 @@ func downloadInfo(info formatInformation, file *os.File) error {
|
|||
if out.IsDev() {
|
||||
downloadProgress.Prefix = out.DebugLog.Prefix()
|
||||
}
|
||||
defer func() {
|
||||
if downloadProgress.Total != downloadProgress.Current {
|
||||
fmt.Println()
|
||||
}
|
||||
}()
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue