Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit dacef65

Browse files
author
Ian VanSchooten
committed
Alert user if worker was not yet ready
1 parent 9883dcd commit dacef65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ export default {
7878
const fileDir = Path.dirname(filePath)
7979

8080
if (!textEditor || textEditor.isModified()) {
81-
// Ignore invalid or unsaved text editors
81+
// Abort for invalid or unsaved text editors
8282
atom.notifications.addError('Linter-ESLint: Please save before fixing')
8383
return
8484
}
8585

8686
if (this.worker === null) {
87+
// Abort if worker is not yet ready
88+
atom.notifications.addError('Linter-ESLint: Not ready, please try again')
8789
return
8890
}
8991

0 commit comments

Comments
 (0)