Skip to content

Commit

Permalink
fix for wrong lm_sensors error output #66
Browse files Browse the repository at this point in the history
  • Loading branch information
UshakovVasilii committed May 17, 2019
1 parent e169842 commit e559cb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e559cb3

Please sign in to comment.