From f77069da85b540689646ad8949f8111aa02f9e16 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Wed, 20 Apr 2016 15:32:06 +0200 Subject: [PATCH] net/haproxy: print error if statistics are unavailable --- .../src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt index 76bbb626f..aa4473c04 100644 --- a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt +++ b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/statistics.volt @@ -49,6 +49,8 @@ POSSIBILITY OF SUCH DAMAGE. $('#infolist').append(''+key+'' + ""+value+""); }); + } else { + $("#infolist").html("
Error: Unable to fetch statistics. Is HAProxy running?"); } $('#processing-dialog').modal('hide'); }