[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] qmp: Report path ambiguity error.
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-trivial] [PATCH] qmp: Report path ambiguity error. |
Date: |
Mon, 05 May 2014 13:12:42 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 |
03.05.2014 12:38, Michael Tokarev wrote:
[]
> --- a/qmp.c
> +++ b/qmp.c
> @@ -200,7 +200,9 @@ ObjectPropertyInfoList *qmp_qom_list(const char *path,
> Error **errp)
>
> obj = object_resolve_path(path, &ambiguous);
> if (obj == NULL) {
> - error_set(errp, QERR_DEVICE_NOT_FOUND, path);
> + error_set(errp,
> + ambiguous ? "Path '%s' is ambiguous" :
> QERR_DEVICE_NOT_FOUND,
> + path);
> return NULL;
> }
I've applied this version.
Thanks,
/mjt