Martin Peřina has uploaded a new change for review. Change subject: tools: Make "No transport ..." error more understandable ......................................................................
tools: Make "No transport ..." error more understandable Makes current error message "No transport is enabled, nothing to do" more understandable to users: "No transport is enabled, please enable SMTP (using MAIL_SERVER option) or SNMP (using SNMP_MANAGERS option)." Change-Id: I8aa720ff3d15ed45ec59035926bd2db8b7f2d020 Bug-Url: https://bugzilla.redhat.com/1136026 Signed-off-by: Martin Perina <[email protected]> --- M backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/Notifier.java 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/05/32305/1 diff --git a/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/Notifier.java b/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/Notifier.java index 15be47c..3adf914 100644 --- a/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/Notifier.java +++ b/backend/manager/tools/src/main/java/org/ovirt/engine/core/notifier/Notifier.java @@ -60,7 +60,9 @@ notificationService.registerTransport(new Smtp(prop)); notificationService.registerTransport(new Snmp(prop)); if (!notificationService.hasTransports()) { - throw new RuntimeException("No transport is enabled, nothing to do"); + throw new RuntimeException( + "No transport is enabled, please enable at least one of SMTP (using MAIL_SERVER option)" + + " or SNMP (using SNMP_MANAGERS option) transports."); } } catch (Exception ex) { log.error("Failed to initialize", ex); -- To view, visit http://gerrit.ovirt.org/32305 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8aa720ff3d15ed45ec59035926bd2db8b7f2d020 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Martin Peřina <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
