Catch errors checking if response is pending
Catch errors checking if response is pending

In case the Travis API returns a response which doesn't match our
expected format, reject the Promise with an Error.

This is the sort of error which shouldn't be ignored (which would result
in incorrect behavior) and shouldn't crash the process (by causing
uncaughtException).

Signed-off-by: Kevin Locke <ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinlocke.name>

kevinoid/travis-status,kevinoid/travis-status,kevinoid/travis-status