Fix bug 2730, bad error messages.
Removing unneeded lines.