From 2eef1e96e60f9104d9c8213aa94e1a1f40c7c0a9 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 20 Feb 2018 10:21:15 +0100 Subject: [PATCH 1/4] Remove invalid error reports --- www/common/outer/userObject.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/common/outer/userObject.js b/www/common/outer/userObject.js index 12d6d225e..dadbfb463 100644 --- a/www/common/outer/userObject.js +++ b/www/common/outer/userObject.js @@ -104,9 +104,13 @@ define([ fd.owners && fd.owners.indexOf(edPublic) !== -1 && channelId) { removeOwnedChannel(channelId, function (obj) { if (obj && obj.error) { - console.error(obj.error); + // If the error is that the file is already removed, nothing to + // report, it's a normal behavior (pad expired probably) + if (obj.error.code === 'ENOENT') { return; } + // RPC may not be responding // Send a report that can be handled manually + console.error(obj.error); Feedback.send('ERROR_DELETING_OWNED_PAD=' + channelId, true); } }); From 5f50bedce2a5b24b1ff6f25d248d9dd74d1aae70 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 20 Feb 2018 14:42:11 +0100 Subject: [PATCH 2/4] Fix empty properties for readonly pads --- www/common/common-ui-elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 1d41d8308..462c806fb 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -141,7 +141,7 @@ define([ }; var getPadProperties = function (common, data, cb) { var $d = $('
'); - if (!data || !data.href) { return void cb(void 0, $d); } + if (!data || (!data.href && !data.roHref)) { return void cb(void 0, $d); } if (data.href) { $('