• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zulip / zulip-mobile / 3413
47%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2018 11:46PM UTC
Jobs 1
Files 363
Run time 49s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3413

push

travis-ci

gnprice
api: Fix noisy console.error on API error responses.

This code was broken in two ways:

* It caused a red-screen on any API error response, even a perfectly
  normal one like an expired server event queue.

* The bulk of the resulting error message consisted of internals of
  the `response` object that are meaningless when debugging
  application code, and conversely the actual error data from the
  server was not displayed.

Fix the first issue by downgrading to `console.warn`, and the second
by replacing `response` with the same meaningful data we include in
the error object we're about to throw.

This does give up a feature that in the right circumstances was
helpful for debugging: now when an API request fails in debug mode,
it's flagged in the console (so `adb logcat` and the Xcode equivalent)
but not on the app's screen.  To make the latter happen again, it'll
be enough to delete our `disableYellowBox` line so we can use RN's
"yellow-box" feature again.

1016 of 2105 branches covered (48.27%)

Branch coverage included in aggregate %.

1955 of 3793 relevant lines covered (51.54%)

43.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3413.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 04 Sep 2018 11:45PM UTC 0
50.37
Travis Job 3413.1
Source Files on build 3413
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3413
  • ebda24a9 on github
  • Prev Build on master (#6781)
  • Next Build on master (#6783)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc