Using the usual On Error Goto Erhan type of thing how can I tell which line the error was in?

I am debugging a DLL for an ASP and I don't want to add load of lines of code logging each line number to a file.

thanks