Chris Jaekl [Mon, 24 Aug 2015 12:53:18 +0000 (21:53 +0900)]
Fix issue with inconsistent formatting of "GPS off" buses.
OC Transpo usually reports a bus with no GPS data as having a
"GPS last read" time of (-1) minutes ago. But sometimes it reports
it as (-2), for reasons that aren't clear (at least, not to me).
The code was applying an "== (-1)" test in one spot, but a "< 0"
test in another; inconsistency is not good, nor is repeating a
conditional test unnecessarily.
Chris Jaekl [Sun, 21 Dec 2014 03:24:59 +0000 (22:24 -0500)]
Add ability to see raw response from server when something goes wrong. (OC Transpo returns a non-html plain-text response when things go wrong). Also, clean up a warning about deprecation in one unit test.
Chris Jaekl [Sat, 13 Dec 2014 05:02:45 +0000 (00:02 -0500)]
Identify bad responses coming back from the server, and throw a specific exception. Eventual goal is to react to this exception with a user-friendly error page.