PicDocument: log reason of opening failure

This commit is contained in:
poire-z
2019-11-15 15:14:32 +01:00
parent 679b592c80
commit 0fb780ea21

View File

@@ -19,7 +19,7 @@ function PicDocument:init()
local ok
ok, self._document = pcall(pic.openDocument, self.file)
if not ok then
error("Failed to open image")
error("Failed to open image:" .. self._document)
end
self.info.has_pages = true