Maor Lipchuk has posted comments on this change.

Change subject: core: catch OpenStackResponseException on execute
......................................................................


Patch Set 6: Code-Review+2

(1 comment)

https://gerrit.ovirt.org/#/c/38926/6/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java:

Line 1184:                     e.getMessage());
Line 1185:             log.debug("Exception", e);
Line 1186:             processExceptionToClient(new VdcFault(e, 
e.getVdsError().getCode()));
Line 1187:         } catch (OpenStackResponseException e) {
Line 1188:             // Adding a message to executeFailedMessages is needed 
only when the list is empty
Try to explain why if you can
Line 1189:             if (_returnValue.getExecuteFailedMessages().isEmpty()) {
Line 1190:                 processExceptionToClient(new VdcFault(e, 
VdcBllErrors.ENGINE));
Line 1191:             }
Line 1192:             log.error("Command '{}' failed: {}", 
getClass().getName(), e.getMessage());


-- 
To view, visit https://gerrit.ovirt.org/38926
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic84ee67e0cb83763d26bba82dd03131d5b97a38d
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to