diff options
author | Robert G. Jakabosky <bobby@sharedrealm.com> | 2011-01-07 05:47:06 -0800 |
---|---|---|
committer | Robert G. Jakabosky <bobby@sharedrealm.com> | 2011-01-07 05:47:06 -0800 |
commit | 19b6c91a47fb28c3ceb1311eb7f73133b9092f89 (patch) | |
tree | 977db2b8410dab69820a8efacef47822e712951c | |
parent | f4931651d22de4a2c477b164e8c1939d0f6c20c1 (diff) | |
download | luagit2-19b6c91a47fb28c3ceb1311eb7f73133b9092f89.tar.gz |
Update to newest error_code interface.
-rw-r--r-- | error.nobj.lua | 1 |
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) { |