[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] qmp: Report path ambiguity error.
From: |
Hani Benhabiles |
Subject: |
[Qemu-trivial] [PATCH] qmp: Report path ambiguity error. |
Date: |
Mon, 28 Apr 2014 23:46:26 +0100 |
Signed-off-by: Hani Benhabiles <address@hidden>
Suggested-by: Andreas Färber <address@hidden>
---
qmp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/qmp.c b/qmp.c
index 74107be..0d49abf 100644
--- a/qmp.c
+++ b/qmp.c
@@ -199,7 +199,10 @@ ObjectPropertyInfoList *qmp_qom_list(const char *path,
Error **errp)
ObjectProperty *prop;
obj = object_resolve_path(path, &ambiguous);
- if (obj == NULL) {
+ if (ambiguous) {
+ error_setg(errp, "Path '%s' is ambiguous", path);
+ return NULL;
+ } else if (obj == NULL) {
error_set(errp, QERR_DEVICE_NOT_FOUND, path);
return NULL;
}
--
1.8.3.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-trivial] [PATCH] qmp: Report path ambiguity error.,
Hani Benhabiles <=