Alon Bar-Lev has uploaded a new change for review. Change subject: pythonlib: java: improve error when no jre is available ......................................................................
pythonlib: java: improve error when no jre is available Change-Id: I01c5af5ff47e26f0f2cf13df2be99351758634ee Signed-off-by: Alon Bar-Lev <[email protected]> --- M packaging/pythonlib/ovirt_engine/java.py 1 file changed, 9 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/26/26026/1 diff --git a/packaging/pythonlib/ovirt_engine/java.py b/packaging/pythonlib/ovirt_engine/java.py index e675b83..c72ba08 100644 --- a/packaging/pythonlib/ovirt_engine/java.py +++ b/packaging/pythonlib/ovirt_engine/java.py @@ -47,7 +47,15 @@ stdout = stdout.decode('utf-8', 'replace').splitlines() stderr = stderr.decode('utf-8', 'replace').splitlines() if p.returncode != 0: - raise RuntimeError(_('Cannot get JAVA_HOME (%s)') % stderr) + raise RuntimeError( + _( + 'Cannot get JAVA_HOME{error} make sure supported ' + 'JRE is installed' + ).format( + error='(%s)' % stderr if stderr else '', + ) + ) + javaHome = stdout[0] self.logger.debug('JAVA_HOME: %s', javaHome) return javaHome -- To view, visit http://gerrit.ovirt.org/26026 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I01c5af5ff47e26f0f2cf13df2be99351758634ee Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
