Skip to content

Commit 6b9ba92

Browse files
committed
Improved error message.
1 parent c9043f9 commit 6b9ba92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_backend.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ for _,obj in ipairs(object_ids) do
109109
print()
110110
end
111111

112+
print("Creating repository from git repository:", git_path)
112113
local status, rep = pcall(git2.Repository.open_no_backend,
113114
git_path, git_path .. 'objects', git_path .. 'index', git_path .. '../')
114115

115116
if not status then
116-
print("Creating repository from git repository:", git_path)
117-
rep = git2.Repository.open(git_path)
117+
rep = assert(git2.Repository.open(git_path))
118118
else
119119
print("Created repository with no backends from git repository:", git_path)
120120
end

0 commit comments

Comments
 (0)