diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-06 16:14:31 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-06 16:27:13 -0800 |
commit | ae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71 (patch) | |
tree | 65d8215f898fc30b579b72d815e6adc78823dd6c /src/refs.c | |
parent | cb8a79617b15e347f26d21cedde0f2b8670c1876 (diff) | |
download | libgit2-ae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71.tar.gz |
Migrating diff to new error handling
Ended up migrating a bunch of upstream functions as well
including vector, attr_file, and odb in order to get this
to work right.
Diffstat (limited to 'src/refs.c')
-rw-r--r-- | src/refs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/refs.c b/src/refs.c index 461b50719..e90cf5de1 100644 --- a/src/refs.c +++ b/src/refs.c @@ -1021,8 +1021,7 @@ static int reference_delete(git_reference *ref) git_buf_free(&full_path); /* done with path at this point */ if (result < 0) { - giterr_set(GITERR_OS, - "Failed to unlink '%s': %s", full_path.ptr, strerror(errno)); + giterr_set(GITERR_OS, "Failed to unlink '%s'", full_path.ptr); return -1; } |