Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix #44

Merged
merged 2 commits into from

2 participants

@alejandro
Collaborator

indexOf is not defined, #366 on nodester repo

@nodester nodester merged commit 4a6fe14 into nodester:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 8, 2012
  1. @alejandro
  2. @alejandro

    Merge branch 'master' of github.com:alejandromg/nodester-cli

    alejandro authored
    * 'master' of github.com:alejandromg/nodester-cli:
      typo
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/app.js
View
5 lib/app.js
@@ -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'
Something went wrong with that request. Please try again.