Commit Diff


commit - fccaf53e42a7146013f4abfcdb5d329b97198706
commit + 4caceeab0d973f8e053ed6e6c456fc2d4ebcc265
blob - a0cbcb27a09f23766b65cf78d7f8c831291f5295
blob + af247b0d3fb26bd4df9817b85802d5067a695e16
--- libexec/got-fetch-http/got-fetch-http.c
+++ libexec/got-fetch-http/got-fetch-http.c
@@ -86,7 +86,7 @@ bufio_close_sync(struct bufio *bio)
 	do {
 		r = bufio_close(bio);
 		if (r == -1 && errno != EAGAIN)
-			errx(1, "bufio_read: %s", bufio_io_err(bio));
+			errx(1, "bufio_close: %s", bufio_io_err(bio));
 	} while (r == -1 && errno == EAGAIN);
 }