summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Config/HAProxy.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Config/HAProxy.pm b/lib/Config/HAProxy.pm
index 44cc3fb..175e402 100644
--- a/lib/Config/HAProxy.pm
+++ b/lib/Config/HAProxy.pm
@@ -235,6 +235,7 @@ sub save {
235 my ($ok, $err, $full, $outbuf, $errbuf) = 235 my ($ok, $err, $full, $outbuf, $errbuf) =
236 run(command => "$cmd $tempfile"); 236 run(command => "$cmd $tempfile");
237 unless ($ok) { 237 unless ($ok) {
238 unlink $tempfile;
238 if ($errbuf && @$errbuf) { 239 if ($errbuf && @$errbuf) {
239 croak "Syntax check failed: ".join("\n", @$errbuf)."\n"; 240 croak "Syntax check failed: ".join("\n", @$errbuf)."\n";
240 } 241 }

Return to:

Send suggestions and report system problems to the System administrator.