Fix format on snmp browser error messages
This commit is contained in:
parent
967f7ac239
commit
06d18985e0
|
@ -66,16 +66,26 @@ function snmpBrowse() {
|
|||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
$("#spinner").css("display", "none");
|
||||
$("#snmp_browser").html(
|
||||
"<p>Status: " +
|
||||
var htmlError = "";
|
||||
|
||||
if (XMLHttpRequest.responseText) {
|
||||
htmlError =
|
||||
"<p><b>Status:</b> " +
|
||||
textStatus +
|
||||
"</p><p>" +
|
||||
"Error: " +
|
||||
errorThrown +
|
||||
"</p><p>" +
|
||||
XMLHttpRequest.responseText +
|
||||
"</p>"
|
||||
);
|
||||
"</p>";
|
||||
} else {
|
||||
htmlError =
|
||||
"<p><b>Status:</b> " +
|
||||
textStatus +
|
||||
"</p><p>" +
|
||||
"<b>Error:</b> " +
|
||||
errorThrown +
|
||||
"</p>";
|
||||
}
|
||||
|
||||
$("#snmp_browser").html(htmlError);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue