Python SOPs and eror or warning messages

   2937   1   2
User Avatar
Member
344 posts
Joined: July 2005
Offline
I'm writing some python SOPs and would like to know if it's possible to put my own useful error and warning message string in the SOP that can be displayed when a user middle clicks on the SOP.
User Avatar
Member
11 posts
Joined: Oct. 2007
Offline
In soho.py, it is throwing errors by writing to sys.stderr. I am not sure if this will work for you:


def error(msg):
sys.stderr.write('Generation Error: ‘)
sys.stderr.write(msg)
sys.stderr.write(’\n')
sys.stderr.flush()
raise SystemExit
  • Quick Links