Getting location of last ruby error

Hi all

I was just about to create my probably most simple plugin yet - a button that can be pressed to reload the file the last ruby error occurred in. However, in SU 2014 an later $@ always seam to contain nil, even after an error has occurred. Does anyone know why this changed or if there is an easy work-around?

$@ return nil in standalone Ruby as well. Probably a change in Ruby itself from 1.8 to 2.0. Such global error variables are always tricky - easy for them to be overwritten before you can grab their values.

1 Like