aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2019-09-30 17:44:52 -0700
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-09-30 17:44:52 -0700
commitcf996b0f5e8a89d9172f5d7383b7905d894b96c6 (patch)
tree59acc607e0b8ce011a23a5090b6d3c2b7e157d28
parent684e2bc23eeedfcffdbbdca3e74515c80013761e (diff)
downloadPortableVM-cf996b0f5e8a89d9172f5d7383b7905d894b96c6.tar
PortableVM-cf996b0f5e8a89d9172f5d7383b7905d894b96c6.tar.gz
PortableVM-cf996b0f5e8a89d9172f5d7383b7905d894b96c6.tar.bz2
PortableVM-cf996b0f5e8a89d9172f5d7383b7905d894b96c6.zip
feat: pause if the commit is failed
-rw-r--r--PortableVM.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/PortableVM.lua b/PortableVM.lua
index 2184ede..ac16081 100644
--- a/PortableVM.lua
+++ b/PortableVM.lua
@@ -92,6 +92,7 @@ local function askForCommit()
else
if mVM.commit(SNAP_PATH) ~= true then
io.stderr:write("Cannot commit to the disk.\n")
+ mInput.readLine()
os.exit(4)
else
os.remove(SNAP_PATH)