handle errors reported by the file descriptor count admin command

closes #533
pull/1/head
ansuz 4 years ago
parent 176f4853a9
commit f652143de2

@ -566,6 +566,13 @@ define([
sFrameChan.query('Q_ADMIN_RPC', { sFrameChan.query('Q_ADMIN_RPC', {
cmd: 'GET_FILE_DESCRIPTOR_COUNT', cmd: 'GET_FILE_DESCRIPTOR_COUNT',
}, function (e, data) { }, function (e, data) {
if (e || (data && data.error)) {
console.error(e, data);
$div.append(h('pre', {
style: 'text-decoration: underline',
}, String(e || data.error)));
return;
}
console.log(e, data); console.log(e, data);
$div.find('pre').remove(); $div.find('pre').remove();
$div.append(h('pre', String(data))); $div.append(h('pre', String(data)));

Loading…
Cancel
Save