summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorJesper Hansen <[email protected]>2013-07-07 16:43:44 +0200
committerCarlos Martín Nieto <[email protected]>2014-02-26 16:10:00 +0100
commit499f52a3549503604f30663211361e2fbd3cf202 (patch)
treeef2008e677ad5eae7f9443bb0d150b85673cb01b /commit.go
parent3e5586bd8d532c929aecf778fc094e4f86588d37 (diff)
Added git error code to the error object.
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.go b/commit.go
index 0c64c76..0edebb6 100644
--- a/commit.go
+++ b/commit.go
@@ -31,7 +31,7 @@ func (c Commit) Tree() (*Tree, error) {
err := C.git_commit_tree(&ptr, c.ptr)
if err < 0 {
- return nil, LastError()
+ return nil, MakeGitError(err)
}
return allocObject(ptr).(*Tree), nil