Skip to content

Commit

Permalink
Warning user about possibility of terminal choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamiun committed Oct 9, 2017
1 parent 158ceea commit 9042036
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,15 @@ class SpawnWrapper extends Base {
tty(model) {
model.options = this.optionWrapper(model.options);
let tty = this.spawnWrapper(model);
let shellName = this.object.shell;

tty.on('error', function (error) {
atom.notifications.addError('There was a problem opening \''
+ shellName + '\'. If your computer doesn\'t have \'' + shellName
+ '\' installed, you can set your own terminal on the package\'s ' +
'Settings.')
});

if (model.log) {
new Log({
'tty': tty,
Expand Down

0 comments on commit 9042036

Please sign in to comment.