fixed formatting of error string