fix error handling

This commit is contained in:
TJ Horner 2019-02-28 16:14:09 -08:00
parent b784f33765
commit 27c089d409
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func work(wn int, posts []Post, directory string, completed *int, successes *int
err := downloadPost(&post, directory)
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++
} else {
*successes++