bugfix: roll back on load error
This commit is contained in:
parent
eb0079ef87
commit
ada035f0bc
1
live.lua
1
live.lua
|
@ -260,6 +260,7 @@ function live.run(buf)
|
|||
if not status then
|
||||
-- roll back
|
||||
Live.head = Live.manifest[PARENT]
|
||||
love.filesystem.write('head', tostring(Live.head))
|
||||
local previous_manifest_filename = live.versioned_manifest(Live.head)
|
||||
Live.manifest = json.decode(love.filesystem.read(previous_manifest_filename))
|
||||
-- throw an error
|
||||
|
|
Loading…
Reference in New Issue