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

ICRAR / ngas / 487 / 2
69%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Ran 12 Jan 2021 03:55AM UTC
Files 163
Run time 13s
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

12 Jan 2021 03:54AM UTC coverage: 68.528%. First build
DB=mysql

push

travis-ci-com

Rodrigo Tobar
Generate useful message upon unknown MIME type

As pointed out by #13, issuing an archiving command with an unknown MIME
type currently results on a cryptic, internal error message ("'NoneType'
object has no attribute 'getHostIdList'") rather than a useful one.

This commit avoids the condition that generated the previous error
message, adding the necessary checks to generate a more meaningful error
message instead stating that the MIME type is not konwn to NGAS.
Alongside this change I also slightly simplified a bit of code to avoid
some small repetitions.

A new unit test also ensures the error message received by the user is
actually useful. This is done by checking that the unknown MIME type
sent by the user is somewhere in the error message, hinting that the
issue is being addressed by the message.

13437 of 19608 relevant lines covered (68.53%)

0.69 hits per line

Source Files on job 487.2 (DB=mysql)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 422
  • Travis Job 487.2
  • 0b3cf49d on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc