avoid dumping error pages into error messages