ember-cli-deploy / ember-cli-deploy-revision-data

An ember-cli-plugin to create a unique revision key for the build
MIT License
21 stars 58 forks source link

Handle error event when listing revision data #53

Open shellandbull opened 7 years ago

shellandbull commented 7 years ago

Hello guys,

There's clearly something wrong with my setup - but I'm not exactly sure what that is - running ember deploy --verbose env yields the following:

+- fetchInitialRevisions
|  |
|  +- redis
- Listing initial revisions for key: `sunlight-web-client`
events.js:160
      throw er; // Unhandled 'error' event

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Timed out while waiting for handshake
    at Timeout._onTimeout (/Users/mariogintili/dev/sunlight/web-client/node_modules/ssh2/lib/client.js:569:19)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)

I was wondering if we could handle that error event to show something more informative?

EDIT the unhandled error might not be in this library, sorry if that's the case