summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-08 05:07:20 -0800
committerRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-08 05:07:20 -0800
commit6b9ba92db942bbf9848165da21abcdeb492b9273 (patch)
tree8bff95172a9f786957895e34a835118ca3ad237a
parentc9043f93e1d0292c5396c86344d90163028fa0a7 (diff)
downloadluagit2-6b9ba92db942bbf9848165da21abcdeb492b9273.tar.gz
Improved error message.
-rw-r--r--test_backend.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_backend.lua b/test_backend.lua
index c0b45a9..30e7212 100644
--- a/test_backend.lua
+++ b/test_backend.lua
@@ -109,12 +109,12 @@ for _,obj in ipairs(object_ids) do
print()
end
+print("Creating repository from git repository:", git_path)
local status, rep = pcall(git2.Repository.open_no_backend,
git_path, git_path .. 'objects', git_path .. 'index', git_path .. '../')
if not status then
- print("Creating repository from git repository:", git_path)
- rep = git2.Repository.open(git_path)
+ rep = assert(git2.Repository.open(git_path))
else
print("Created repository with no backends from git repository:", git_path)
end