Maor Lipchuk has uploaded a new change for review.

Change subject: core: Add the exception to the query result on failure
......................................................................

core: Add the exception to the query result on failure

Adding the exception when calling
GetUnregisteredBlockStorageDomainsQuery, so once this query will be
called from the REST we can know the origin of the failure.

Change-Id: I3fb4163c52ec0f8d3ad38681a2946f405dc805a7
Signed-off-by: Maor Lipchuk <mlipc...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQuery.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/58/37258/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQuery.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQuery.java
index c382ca0..20984c5 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQuery.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/GetUnregisteredBlockStorageDomainsQuery.java
@@ -62,6 +62,7 @@
         } catch (RuntimeException e) {
             log.error("Failed to retrieve storage domains by connections info: 
{}", e.getMessage());
             log.debug("Exception", e);
+            getQueryReturnValue().setExceptionString(e.getMessage());
             getQueryReturnValue().setSucceeded(false);
             return;
         }


-- 
To view, visit http://gerrit.ovirt.org/37258
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3fb4163c52ec0f8d3ad38681a2946f405dc805a7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to