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

Commit b8f2788

Browse files
relekangsindresorhus
authored andcommitted
Add error notification when ava is not found (#17)
1 parent 570316f commit b8f2788

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/terminal-command-executor.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ class TerminalCommandExecutor extends EventEmitter {
3939
}
4040

4141
_streamClosed(code) {
42+
if (code === 127) {
43+
atom.notifications.addError('[AVA] Command not found', {
44+
detail: 'AVA was not found. Make sure it\'s installed.',
45+
dismissable: true
46+
});
47+
}
4248
this.emit(this.dataFinishedEventName, code);
4349
}
4450
}

0 commit comments

Comments
 (0)