Michael Pasternak has uploaded a new change for review. Change subject: cli: raise CommandError on generic errors ......................................................................
cli: raise CommandError on generic errors Change-Id: I7bf173b4a1ab112d4fbc30fbfe797b9fe4929800 Signed-off-by: Michael pasternak <mpast...@redhat.com> --- M src/ovirtcli/shell/engineshell.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/28/20328/1 diff --git a/src/ovirtcli/shell/engineshell.py b/src/ovirtcli/shell/engineshell.py index 8a2146a..e7ce88a 100644 --- a/src/ovirtcli/shell/engineshell.py +++ b/src/ovirtcli/shell/engineshell.py @@ -52,6 +52,7 @@ from ovirtcli.settings import OvirtCliSettings from ovirtcli.prompt import PromptMode from ovirtcli.listeners.exitlistener import ExitListener +from cli.error import CommandError class EngineShell(cmd.Cmd, ConnectCmdShell, ActionCmdShell, \ ShowCmdShell, ListCmdShell, UpdateCmdShell, \ @@ -396,7 +397,7 @@ # this is a custom error, consumer responsibility # to filter out duplicate calls on event self.onError.fire() - self.context._handle_exception(SyntaxError(msg)) + self.context._handle_exception(CommandError(msg)) def _print(self, msg): self.context._pint_text(msg) -- To view, visit http://gerrit.ovirt.org/20328 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7bf173b4a1ab112d4fbc30fbfe797b9fe4929800 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-cli Gerrit-Branch: master Gerrit-Owner: Michael Pasternak <mpast...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches