Properly format errors/warnings.

STUD-1063