Can we get a variable returns the last /command that the script executed?
Right now in my script I'm getting "You can't use that command while casting" and I can't figure out what command is generating the error. I'd like to create an event that runs on that error and tells me what generated it.

