fix error handling
This commit is contained in:
parent
b784f33765
commit
27c089d409
|
@ -64,7 +64,7 @@ func work(wn int, posts []Post, directory string, completed *int, successes *int
|
||||||
|
|
||||||
err := downloadPost(&post, directory)
|
err := downloadPost(&post, directory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("[w%d] Failed to download post: %v\n", err)
|
fmt.Printf("[w%d] Failed to download post %d: %v\n", wn, post.ID, err)
|
||||||
*failures++
|
*failures++
|
||||||
} else {
|
} else {
|
||||||
*successes++
|
*successes++
|
||||||
|
|
Loading…
Reference in New Issue