Skip to content

Commit

Permalink
only fail to start if pi finder package doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtreece committed Apr 5, 2015
1 parent 3021411 commit a91f6ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pi_finder/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ app.on('ready', function() {

npm.commands.install(__dirname, ['adafruit-pi-finder@stable'], function(err) {

if(err) {
try {
require('adafruit-pi-finder')(app);
} catch(e) {
return dialog.showErrorBox('ERROR', 'Pi Finder auto update failed! Are you connected to the internet?');
}

require('adafruit-pi-finder')(app);

});

});
Expand Down

0 comments on commit a91f6ae

Please sign in to comment.