Github user robertkowalski commented on the pull request:

    https://github.com/apache/couchdb-nmo/pull/2#issuecomment-137766670
  
    if you ask isonline to see if a non existing cluster is online it crashes, 
+1 after checking for it with an error of error.type `EUSAGE`
    
    ```
    (17:23:07) [robert@tequila-work] ~/apache/couchdb-nmo (pr/2) $ 
./bin/nmo-cli.js isonline notexist
    ERR! Object.keys called on non-object
    ERR! TypeError: Object.keys called on non-object
    ERR!     at Function.keys (native)
    ERR!     at getClusterUrls 
(/Users/robert/apache/couchdb-nmo/lib/isonline.js:76:17)
    ERR!     at /Users/robert/apache/couchdb-nmo/lib/isonline.js:50:14
    ERR!     at tryCatcher 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/util.js:24:31)
    ERR!     at Promise._resolveFromResolver 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/promise.js:427:31)
    ERR!     at new Promise 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/promise.js:53:37)
    ERR!     at isOnlineCli 
(/Users/robert/apache/couchdb-nmo/lib/isonline.js:41:10)
    ERR!     at /Users/robert/apache/couchdb-nmo/bin/nmo-cli.js:34:6
    ERR!     at tryCatcher 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/util.js:24:31)
    ERR!     at Promise._settlePromiseFromHandler 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/promise.js:454:31)
    ERR!     at Promise._settlePromiseAt 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/promise.js:530:18)
    ERR!     at Promise._settlePromises 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/promise.js:646:14)
    ERR!     at Async._drainQueue 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/async.js:177:16)
    ERR!     at Async._drainQueues 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/async.js:187:10)
    ERR!     at Immediate.Async.drainQueues [as _onImmediate] 
(/Users/robert/apache/couchdb-nmo/node_modules/bluebird/js/main/async.js:15:14)
    ERR!     at processImmediate [as _immediateCallback] (timers.js:358:17)
    ERR!
    ERR!
    ERR! nmo: 1.0.1 node: v0.12.2
    ERR! please open an issue including this log on 
https://github.com/robertkowalski/nmo/issues
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to