in reply to Determining a line number the error occurs on

I don't know if this will help, but you can use caller within a subroutine context.
  • Comment on Re: Determining a line number the error occurs on