Improve error messages look and feel (bug 905368)