From 3f3155bd28571a16a3593c59b63e7f0827157459 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 23 Jul 2020 09:38:11 -0400 Subject: [PATCH] fix a condition in our error handling that caused a false negative --- www/common/proxy-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index bf7af8d39..4f0fbb1ac 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -840,7 +840,7 @@ define([ Env.removeOwnedChannel(chan, function (obj) { // If the error is that the file is already removed, nothing to // report, it's a normal behavior (pad expired probably) - if (obj && obj.error && obj.error.code !== "ENOENT") { + if (obj && obj.error && obj.error !== "ENOENT") { // RPC may not be responding // Send a report that can be handled manually if (fId && Env.folders[fId] && Env.folders[fId].deleting) { @@ -911,7 +911,7 @@ define([ Env.removeOwnedChannel(chan, waitFor(function (obj) { // If the error is that the file is already removed, nothing to // report, it's a normal behavior (pad expired probably) - if (obj && obj.error && obj.error.code !== "ENOENT") { + if (obj && obj.error && obj.error !== "ENOENT") { // RPC may not be responding // Send a report that can be handled manually console.error(obj.error, chan);