From 8d17ae64f3f2169ed9fa85d22b0b694f0231e468 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 12 Aug 2021 19:08:18 +0530 Subject: [PATCH] log an error with a channel if we try to pin an invalid channel --- www/common/pinpad.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/pinpad.js b/www/common/pinpad.js index de93f066f..206bbbaee 100644 --- a/www/common/pinpad.js +++ b/www/common/pinpad.js @@ -134,6 +134,7 @@ var factory = function (Util, Rpc) { exp.removeOwnedChannel = function (channel, cb) { if (typeof(channel) !== 'string' || [32,48].indexOf(channel.length) === -1) { // can't use this on files because files can't be owned... + console.error('invalid channel to unpin', channel); return void cb('INVALID_ARGUMENTS'); } rpc.send('REMOVE_OWNED_CHANNEL', channel, function (e, response) {