mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-08 16:34:18 -04:00
net/haproxy: print error if statistics are unavailable
This commit is contained in:
parent
6dfbb119f7
commit
f77069da85
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
$('#infolist').append('<tr><td>'+key+'</td>' +
|
||||
"<td>"+value+"</td></tr>");
|
||||
});
|
||||
} else {
|
||||
$("#infolist").html("<tr><td><br/><b>Error:</b> Unable to fetch statistics. Is HAProxy running?</td></tr>");
|
||||
}
|
||||
$('#processing-dialog').modal('hide');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue