From e559cb3e4cd93f6b81646cce30709c522e043a43 Mon Sep 17 00:00:00 2001 From: UshakovVasilii Date: Fri, 17 May 2019 14:04:14 +0300 Subject: [PATCH] fix for wrong lm_sensors error output #66 --- freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js | 1 + 1 file changed, 1 insertion(+) diff --git a/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js b/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js index c0e9379..eb46617 100644 --- a/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js +++ b/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js @@ -49,6 +49,7 @@ var SensorsUtil = class extends CommandLineUtil.CommandLineUtil { // https://github.com/UshakovVasilii/gnome-shell-extension-freon/issues/114#issuecomment-491613545 let lineRemoved = this._output.filter(l => l.trim() !== ',').join('\n'); let errorRemoved = lineRemoved.replace(/ERROR.*Can't read/, ""); + errorRemoved = errorRemoved.replace(/ERROR.*I/O error/, ""); data = JSON.parse(errorRemoved); } catch (e) { global.log(e.toString());