summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-02-26 16:14:31 +0100
committerCarlos Martín Nieto <[email protected]>2014-02-26 16:14:31 +0100
commit00ea11691b574b8372cb216427d98038e107e358 (patch)
tree67dc9a8ff8ee6e018203769c31d55f83861983dc /index.go
parent499f52a3549503604f30663211361e2fbd3cf202 (diff)
Convert the rest of the errors
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