[libvirt] [PATCH] Attempt to improve an error message
Eric Blake
eblake at redhat.com
Wed Mar 2 17:29:57 UTC 2011
On 03/02/2011 10:18 AM, Daniel P. Berrange wrote:
> Replace the 'Unknown failure' error message with something a
> little bit more descriptive.
>
> * src/util/virterror.c: Improve error message
> ---
> src/util/virterror.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/util/virterror.c b/src/util/virterror.c
> index f1b79c8..aaa3720 100644
> --- a/src/util/virterror.c
> +++ b/src/util/virterror.c
> @@ -248,7 +248,7 @@ virErrorGenericFailure(virErrorPtr err)
> err->code = VIR_ERR_INTERNAL_ERROR;
> err->domain = VIR_FROM_NONE;
> err->level = VIR_ERR_ERROR;
> - err->message = strdup(_("Unknown failure"));
> + err->message = strdup(_("An error occurred, but the cause is unknown"));
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110302/0dd2bd0f/attachment-0001.sig>
More information about the libvir-list
mailing list