Permalink
Browse files

Merge pull request #44 from alejandromg/master

Fix
  • Loading branch information...
2 parents 5197551 + 23bb252 commit 4a6fe1418110021611361c7eca5260676e7b34d7 @nodester committed Apr 30, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/app.js
View
@@ -39,7 +39,10 @@ module.exports = {
}
var l = 'info',
r = data.running;
- if (data.running == false || data.running.indexOf('error') > -1 || data.running.indexOf('failed-to-stop') > -1) {
+ var state = false
+ if (data[i].running.hasOwnProperty('indexOf') && (data[i].running.indexOf('error') >-1|| data[i].running.indexOf('failed-to') > -1))
+ var state = true;
+ if (data.running == false || state) {
l = 'warn';
if (r === false) {
r = 'false'

0 comments on commit 4a6fe14

Please sign in to comment.