plugins/data: give up if the database can't be created (nw)

This commit is contained in:
cracyc 2018-03-20 21:54:22 -05:00
parent 6cbf5c674b
commit 31be84ea40

View File

@ -14,6 +14,10 @@ do
if not db then
lfs.mkdir(dbpath)
db = sql.open(dbpath .. "/history.db")
if not db then
emu.print_error("Unable to create history.db\n")
return nil
end
check_db("opening database")
end
end