avoid dumping error pages into error messages
Merge pull request #1232 from dbcode/master

avoid dumping error pages into error messages