From: Cole Robinson Date: Tue, 5 May 2009 14:17:50 +0000 (+0000) Subject: Use proper error code in virStorageVolCreateXML X-Git-Tag: LIBVIRT_0_6_4~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e9d6862a93c4a089f06fcd79d88f4ba05a3692;p=thirdparty%2Flibvirt.git Use proper error code in virStorageVolCreateXML --- diff --git a/ChangeLog b/ChangeLog index 2f0c0ba72e..ba649bb3da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue May 5 10:16:56 EDT 2009 Cole Robinson + + * src/libvirt.c: Use proper error code in virStorageVolCreateXML + Mon May 4 11:44:09 EDT 2009 Cole Robinson * src/storage_backend_fs.c: Fix a comment typo in storage_backend_fs.c diff --git a/src/libvirt.c b/src/libvirt.c index 90b4d90ff0..ded18a7870 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -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); }