VirtualBox

Ticket #10718 (closed enhancement: fixed)

Opened 22 months ago

Last modified 18 months ago

"VBoxmanage snapshot <name> list" errors out when there are no snapshots => Fixed in SVN

Reported by: bekks Owned by:
Priority: major 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

comment:1 Changed 18 months ago by frank

  • Summary changed from "VBoxmanage snapshot <name> list" errors out when there are no snapshots to "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.

comment:2 Changed 18 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 4.2.2.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use