summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-06-11 15:17:52 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-06-11 15:17:52 -0700
commit9e7349fd154db4b0b99b5a38481b83b28cf307e5 (patch)
tree44c8123ba4c5050c851f7318c48655597e89ce12
parentc4e6ca71c9b7ed23c4ca1e338834867aea3a4df7 (diff)
downloadvyatta-cluster-9e7349fd154db4b0b99b5a38481b83b28cf307e5.tar.gz
vyatta-cluster-9e7349fd154db4b0b99b5a38481b83b28cf307e5.zip
use more clear error message
-rwxr-xr-xscripts/vyatta-update-cluster.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-update-cluster.pl b/scripts/vyatta-update-cluster.pl
index b8c22bf..c3fc7bd 100755
--- a/scripts/vyatta-update-cluster.pl
+++ b/scripts/vyatta-update-cluster.pl
@@ -22,7 +22,8 @@ if ($config->isEmpty()) {
$vconfig->setLevel('service conntrack-sync failover-mechanism');
my @nodes = $vconfig->listNodes();
if (grep(/^cluster$/, @nodes)) {
- print STDERR "cluster is being used as failover-mechanism in conntrack-sync\n";
+ print STDERR "Cluster is being used as failover-mechanism in conntrack-sync\n" .
+ "It is either not configured or has been deleted!\n";
exit 1;
}