fix missing line numbers in error messages

fixes #65