extract error messages
formatting