More line numbery goodness
And put the line number in the error log, too
Merge pull request #84 from adamroach/sdp

More line numbery goodness