improved error reporting layout