summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'index.go')
-rw-r--r--index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.go b/index.go
index cbb28c4..6da3c98 100644
--- a/index.go
+++ b/index.go
@@ -68,7 +68,7 @@ func (v *Index) Write() (error) {
ret := C.git_index_write(v.ptr)
if ret < 0 {
- return LastError()
+ return MakeGitError(ret)
}
return nil