Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix #42

Merged
merged 1 commit into from

2 participants

@alejandro
Collaborator

Fix to data types referent to #366

@chrismatthieu chrismatthieu merged commit d4b9f90 into nodester:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 7, 2012
  1. @alejandro
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/apps.js
View
6 lib/apps.js
@@ -21,8 +21,10 @@ module.exports = {
if (data.length > 0) {
for (var i in data) {
var l = 'info',
- r = data[i].running;
- if (data[i].running == false || data[i].running == 'false' || data[i].running.indexOf('error') > -1 || data[i].running.indexOf('failed-to') > -1) {
+ r = data[i].running;
+ if (data[i].running.hasOwnProperty('indexOf') && (data[i].running.indexOf('error') >-1|| data[i].running.indexOf('failed-to') > -1))
+ var state = true;
+ if (data[i].running == false || data[i].running == 'false' || state) {
l = 'warn';
if (r === false || r == 'false') {
r = 'false'
Something went wrong with that request. Please try again.