Another attempt at getting line numbers for exceptions.