summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-07 05:47:06 -0800
committerRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-07 05:47:06 -0800
commit19b6c91a47fb28c3ceb1311eb7f73133b9092f89 (patch)
tree977db2b8410dab69820a8efacef47822e712951c
parentf4931651d22de4a2c477b164e8c1939d0f6c20c1 (diff)
downloadluagit2-19b6c91a47fb28c3ceb1311eb7f73133b9092f89.tar.gz
Update to newest error_code interface.
-rw-r--r--error.nobj.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.nobj.lua b/error.nobj.lua
index 465a26f..3e41620 100644
--- a/error.nobj.lua
+++ b/error.nobj.lua
@@ -20,6 +20,7 @@
-- Convert Git Error codes into strings.
error_code "GitError" "int" {
+ is_error_check = function(rec) return "(GIT_SUCCESS != ${" .. rec.name .. "})" end,
default = "GIT_SUCCESS",
c_source [[
if(err != GIT_SUCCESS) {