greggman / hft-cli

Command line utils for HappyFunTimes
0 stars 0 forks source link

list-running-games command requires HFT to be running #1

Open ccharlton opened 9 years ago

ccharlton commented 9 years ago

I get an error trying to retrieve a list of running games when HFT isn't running. Capturing this error would allow the cli utility to return a HFT not running message instead of:

$ hft list-running-games

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)
greggman commented 9 years ago

thanks for pointing that out. I committed a fix. Do you need a new app or are you using the repo version of HFT?

ccharlton commented 9 years ago

I use both. Prod machines were using the app, for ease of use. I have not had time to test the latest code base.

greggman commented 9 years ago

App is up to 0.0.30 now. Please tell me if you still see this issue

this is what I see now

$ hft list-running-games
Error: connect ECONNREFUSED
no running games
$ hft list-running-games --full
Error: connect ECONNREFUSED
[]

the error messages are to STDERR, the status to STDOUT