Properly format errors/warnings.

STUD-1063
Merge pull request #2004 from edx/christina/fix-thumbnail-warning

Properly format errors/warnings.