if the document cannot be opened, function openFile(filename) shows a warning with specified error

This commit is contained in:
NuPogodi
2012-09-05 19:53:37 +03:00
parent fe2363b29f
commit a1c85affd1

View File

@@ -53,7 +53,7 @@ function openFile(filename)
G_reader_settings:saveSetting("lastfile", filename)
return reader:inputLoop()
else
InfoMessage:show("Error opening document.", 0)
InfoMessage:show(err or "Error opening document.", 0)
util.sleep(2)
end
end