aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2019-09-30 17:54:01 -0700
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-09-30 17:54:01 -0700
commitba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd (patch)
treeaca00beb2bffc5df4c8aa9395769d6d0af597da7
parentfa67a6d0831959bdba9943897659f72c1921e9b0 (diff)
downloadPortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.tar
PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.tar.gz
PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.tar.bz2
PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.zip
feat: improve the commit fail prompt
-rw-r--r--PortableVM.lua2
-rw-r--r--VM.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/PortableVM.lua b/PortableVM.lua
index 751fd93..e28a9b6 100644
--- a/PortableVM.lua
+++ b/PortableVM.lua
@@ -97,7 +97,7 @@ local function askForCommit()
os.exit(0)
else
if mVM.commit(SNAP_PATH) ~= true then
- io.stderr:write("Cannot commit to the disk.\n")
+ io.stderr:write("Cannot commit to the disk. Press any key to continue.\n")
mInput.readLine()
os.exit(4)
else
diff --git a/VM.lua b/VM.lua
index 6746b13..950f7e2 100644
--- a/VM.lua
+++ b/VM.lua
@@ -10,7 +10,7 @@ function VMUtils.boot(command)
end
function VMUtils.commit(snap)
- return mUtils.exec("qemu-img commit -p " .. snap)
+ return mUtils.exec("qemu-imga commit -p " .. snap)
end
function VMUtils.isSnapExist(snap)