Sort of but I was thinking more of the filename and line number that get prepended to the error message: > error("error msg") stdin:1: error msg Is there any way to get that information? debug.traceback() doesn't seem to provide it.