aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_pools.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-devel/haproxy_pools.php')
-rw-r--r--config/haproxy-devel/haproxy_pools.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/haproxy-devel/haproxy_pools.php b/config/haproxy-devel/haproxy_pools.php
index bad4bf09..07e7d106 100644
--- a/config/haproxy-devel/haproxy_pools.php
+++ b/config/haproxy-devel/haproxy_pools.php
@@ -52,8 +52,14 @@ if ($_POST) {
config_lock();
$retval = haproxy_configure();
config_unlock();
- $savemsg = get_std_save_message($retval);
- unlink_if_exists($d_haproxyconfdirty_path);
+
+ $result = haproxy_check_writtenconfig_error();
+ if ($result)
+ $savemsg = gettext($result);
+ else {
+ $savemsg = get_std_save_message($retval);
+ unlink_if_exists($d_haproxyconfdirty_path);
+ }
}
}