diff options
Diffstat (limited to 'examples/network/fetch.c')
| -rw-r--r-- | examples/network/fetch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 73bfbddd0..157f91423 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -99,6 +99,9 @@ int fetch(git_repository *repo, int argc, char **argv) printf("\rReceived %d/%d objects in %d bytes", stats.processed, stats.total, bytes); } while (!data.finished); + if (data.ret < 0) + goto on_error; + printf("\rReceived %d/%d objects in %d bytes\n", stats.processed, stats.total, bytes); // Disconnect the underlying connection to prevent from idling. |
