summaryrefslogtreecommitdiff
path: root/examples/network/git2.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-03-26 11:36:12 +0200
committerVicent Martí <tanoku@gmail.com>2012-04-11 19:16:10 +0200
commitfc1cc2051e057acd7749fad5a785ee6eab202f1a (patch)
tree90956d641e7a94aa841bd44c8a859156d6e3169a /examples/network/git2.c
parentbd6585a7f55bb630b69cf2928032616f4afad45b (diff)
downloadlibgit2-fc1cc2051e057acd7749fad5a785ee6eab202f1a.tar.gz
Use new error handling in the example network code
Diffstat (limited to 'examples/network/git2.c')
-rw-r--r--examples/network/git2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/git2.c b/examples/network/git2.c
index def56e83b..aeb0e8f4c 100644
--- a/examples/network/git2.c
+++ b/examples/network/git2.c
@@ -31,7 +31,7 @@ int run_command(git_cb fn, int argc, char **argv)
// Run the command. If something goes wrong, print the error message to stderr
error = fn(repo, argc, argv);
if (error < GIT_SUCCESS)
- fprintf(stderr, "Bad news:\n %s\n", git_lasterror());
+ fprintf(stderr, "Bad news:\n %s\n", git_error_last()->message);
if(repo)
git_repository_free(repo);