]> xenbits.xensource.com Git - libvirt.git/commitdiff
Use proper error code in virStorageVolCreateXML
authorCole Robinson <crobinso@redhat.com>
Tue, 5 May 2009 14:17:50 +0000 (14:17 +0000)
committerCole Robinson <crobinso@redhat.com>
Tue, 5 May 2009 14:17:50 +0000 (14:17 +0000)
ChangeLog
src/libvirt.c

index 2f0c0ba72eb70ba7982633a3005eb92c771a0188..ba649bb3dade98563f09bc6a9bce88980888fa25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue May  5 10:16:56 EDT 2009 Cole Robinson <crobinso@redhat.com>
+
+       * src/libvirt.c: Use proper error code in virStorageVolCreateXML
+
 Mon May  4 11:44:09 EDT 2009 Cole Robinson <crobinso@redhat.com>
 
        * src/storage_backend_fs.c: Fix a comment typo in storage_backend_fs.c
index 90b4d90ff053c2fec5ee051ec0f85b317840e0a5..ded18a7870973572238e0c8b109cf89c8c4dbfa3 100644 (file)
@@ -6740,7 +6740,7 @@ virStorageVolCreateXML(virStoragePoolPtr pool,
     virResetLastError();
 
     if (!VIR_IS_STORAGE_POOL(pool)) {
-        virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_VOL, __FUNCTION__);
+        virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_POOL, __FUNCTION__);
         return (NULL);
     }