formatting of error messages