Travis CI build icon.
Formatting.
Improve an error message.

Fixes #1612.
Fix warnings.