diff --git a/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/updater.js b/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/updater.js index 9193bbf..9552d97 100644 --- a/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/updater.js +++ b/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/updater.js @@ -171,9 +171,13 @@ return baseclass.extend({ this.setStage(999); } } catch (e) { + if (e.message?.includes('RPC call to file/exec failed with error -32000: Object not found')) { + console.warn('WARN: installUpdates: ' + e.message); + return; // goto next timer iteration + } clearInterval(timer); this.appendLog('ERROR: installUpdates: ' + e.message); - this.appendLog('ERROR: installUpdates: ' + e.stack?.trim().split('\n').pop()); + this.appendLog('ERROR: installUpdates: ' + e.stack?.trim().split('\n')[0]); this.setStage(999); } finally { timerBusy = false;