From f652143de28d98685b10393e0580c117f4084b7c Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 6 May 2021 13:33:57 +0530 Subject: [PATCH] handle errors reported by the file descriptor count admin command closes #533 --- www/admin/inner.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/admin/inner.js b/www/admin/inner.js index a1979da70..ffc9a561c 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -566,6 +566,13 @@ define([ sFrameChan.query('Q_ADMIN_RPC', { cmd: 'GET_FILE_DESCRIPTOR_COUNT', }, 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); $div.find('pre').remove(); $div.append(h('pre', String(data)));