Fixed bug where line number was not being reported accurately during an
error.