Skip to content

Commit f19d2ee

Browse files
authored
Merge pull request #86 from wakatime/feature/icon
Display tray icon balloon when wakatime-cli exits non zero
2 parents da8e459 + 9450e96 commit f19d2ee

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

electron/watchers/wakatime.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ export class Wakatime {
195195
LogLevel.ERROR,
196196
true,
197197
);
198+
this.tray?.displayBalloon({
199+
title: "WakaTime Error",
200+
content: `Error when running wakatime-cli: ${err}`,
201+
});
198202
}
199203
if (output) {
200204
Logging.instance().log(
@@ -252,13 +256,6 @@ export class Wakatime {
252256
);
253257
return;
254258
}
255-
if (output) {
256-
Logging.instance().log(
257-
`Output from wakatime-cli when fetching code time: ${output}`,
258-
LogLevel.ERROR,
259-
true,
260-
);
261-
}
262259
this.lastCodeTimeText = output;
263260
this.tray?.setTitle(` ${output}`);
264261
this.tray?.setToolTip(` ${output}`);

0 commit comments

Comments
 (0)