1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-18 17:27:39 +00:00

package manager wip

This commit is contained in:
kepler155c@gmail.com
2018-10-21 04:46:40 -04:00
parent b7176e55ad
commit 97c4b7a090
2 changed files with 9 additions and 3 deletions

View File

@@ -15,7 +15,10 @@ function Config.load(fname, data)
if not fs.exists(filename) then
Util.writeTable(filename, data)
else
Util.merge(data, Util.readTable(filename) or { })
local contents = Util.readTable(filename) or
error('Configuration file is corrupt:' .. filename)
Util.merge(data, contents)
end
end