improved whitespace formatting in error messages