I’m not sure if this is possible, but I’ll put it out there.
Let’s say I have something like this:
try: system.runQuery(q) except: print "Query Failed"
In the print statement, would it be possible to somehow pass in the line number, so I saw something like “Query Failed at line 54”. This would be helpful if I am calling a function from multiple places, and would give me the same useful information that the error dialog would give if I didn’t use try/except.