You should be able to just do `print "status error", ex` to the same effect, but easier to read.