Skip to content

Commit

Permalink
Add exception if pm2 not install or have not access to get process
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Apr 8, 2018
1 parent d6bc379 commit f6430c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ <h2>
vue.processes = e;
vue.now = Math.floor(newDate.getTime());
$("#loader").slideUp(100);
}).fail(function() {
alert('Error on get Data: Maybe pm2 not installed, or on runned user has not access to get data.'); // or whatever
});

$("#addForm").slideUp(50);
$.get('/folder', function (e) {
vue.folders = e;
Expand Down

0 comments on commit f6430c2

Please sign in to comment.