]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix two comments related to error handling
authorPhilipp Hahn <hahn@univention.de>
Mon, 17 Oct 2011 15:02:33 +0000 (17:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 17 Oct 2011 15:21:56 +0000 (17:21 +0200)
Signed-off-by: Philipp Hahn <hahn@univention.de>
include/libvirt/virterror.h
python/libvirt-override.py

index dfbe2bcebc4f7dc490ab92686b6ad0d6ae570698..a8549b784f81c097606b58f198ac0c5e55926dfb 100644 (file)
@@ -206,7 +206,7 @@ typedef enum {
     VIR_ERR_INVALID_STORAGE_VOL = 47,  /* invalid storage vol object */
     VIR_WAR_NO_STORAGE = 48,           /* failed to start storage */
     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_ERR_INVALID_NODE_DEVICE = 52,  /* invalid node device object */
     VIR_ERR_NO_NODE_DEVICE = 53,       /* node device not found */
index 387fddfde1cf08facc9d48df650e3845849630e7..8427eab934125d1b3c90acaca8cb393c8c29d07d 100644 (file)
@@ -79,7 +79,7 @@ class libvirtError(Exception):
 # register the libvirt global error handler
 #
 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
        being a list of information about the error being raised.
        Returns 1 in case of success."""