Re: [libvirt] PATCH: Add a new error code for invalid operations

2009-04-29 Thread Daniel Veillard
On Wed, Apr 29, 2009 at 03:32:02PM +0100, Daniel P. Berrange wrote: > A number of operations are only valid when the corresponding object is in > a particular state. eg, you can only suspend a domain, if it is currently > running. We don't have a very consistent way of reporting this problem > ac

[libvirt] PATCH: Add a new error code for invalid operations

2009-04-29 Thread Daniel P. Berrange
A number of operations are only valid when the corresponding object is in a particular state. eg, you can only suspend a domain, if it is currently running. We don't have a very consistent way of reporting this problem across drivers, so this patch introduces a new error code for this situation c