switched error message around so that it better deals with long failure messages