Improve debugging by also printing the line nr where the error occurred.