mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix two comments related to error handling
Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
committed by
Peter Krempa
parent
1afcfbdda0
commit
0a71c79a34
@@ -206,7 +206,7 @@ typedef enum {
|
|||||||
VIR_ERR_INVALID_STORAGE_VOL = 47, /* invalid storage vol object */
|
VIR_ERR_INVALID_STORAGE_VOL = 47, /* invalid storage vol object */
|
||||||
VIR_WAR_NO_STORAGE = 48, /* failed to start storage */
|
VIR_WAR_NO_STORAGE = 48, /* failed to start storage */
|
||||||
VIR_ERR_NO_STORAGE_POOL = 49, /* storage pool not found */
|
VIR_ERR_NO_STORAGE_POOL = 49, /* storage pool not found */
|
||||||
VIR_ERR_NO_STORAGE_VOL = 50, /* storage pool not found */
|
VIR_ERR_NO_STORAGE_VOL = 50, /* storage volume not found */
|
||||||
VIR_WAR_NO_NODE = 51, /* failed to start node driver */
|
VIR_WAR_NO_NODE = 51, /* failed to start node driver */
|
||||||
VIR_ERR_INVALID_NODE_DEVICE = 52, /* invalid node device object */
|
VIR_ERR_INVALID_NODE_DEVICE = 52, /* invalid node device object */
|
||||||
VIR_ERR_NO_NODE_DEVICE = 53, /* node device not found */
|
VIR_ERR_NO_NODE_DEVICE = 53, /* node device not found */
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class libvirtError(Exception):
|
|||||||
# register the libvirt global error handler
|
# register the libvirt global error handler
|
||||||
#
|
#
|
||||||
def registerErrorHandler(f, ctx):
|
def registerErrorHandler(f, ctx):
|
||||||
"""Register a Python written function to for error reporting.
|
"""Register a Python function for error reporting.
|
||||||
The function is called back as f(ctx, error), with error
|
The function is called back as f(ctx, error), with error
|
||||||
being a list of information about the error being raised.
|
being a list of information about the error being raised.
|
||||||
Returns 1 in case of success."""
|
Returns 1 in case of success."""
|
||||||
|
|||||||
Reference in New Issue
Block a user