Opened 12 years ago
Closed 12 years ago
#10718 closed enhancement (fixed)
"VBoxmanage snapshot <name> list" errors out when there are no snapshots => Fixed in SVN
Reported by: | bekks | Owned by: | |
---|---|---|---|
Component: | VM control | Version: | VirtualBox 4.1.18 |
Keywords: | snapshot | Cc: | |
Guest type: | all | Host type: | Linux |
Description
Running "VBoxManage snapshot <name> list" on a vm having no snapshots throws the following error:
VBoxManage: error: This machine does not have any snapshots VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Machine, interface IMachine, callee nsISupports Context: "FindSnapshot(Bstr().raw(), ptrSnapshot.asOutParam())" at line 192 of file VBoxManageSnapshot.cpp
Basically, there is no reason to error out like this, a simple "VBoxManage: this machine does not have any snapshots" would be sufficient. Using "list" to check wether there are snapshots or not is - at least I guess it is - a pretty logical approach and it cant cause an error in both cases.
Change History (2)
comment:1 by , 12 years ago
Summary: | "VBoxmanage snapshot <name> list" errors out when there are no snapshots → "VBoxmanage snapshot <name> list" errors out when there are no snapshots => Fixed in SVN |
---|
I agree and the next 4.1 or 4.2 maintenance release will contain an improved error message.