[omniORB] omniidl: calling it with an unknown option

Christof Meerwald cmeerw@web.de
Sat, 30 Mar 2002 17:51:00 +0100


I just noticed a really small bug in omniidl (with Python 2.2). When calling
it with an unknown option (e.g. "omniidl -?") I get:

Traceback (most recent call last):
  File "/usr/bin/omniidl", line 105, in ?
    omniidl.main.main()
  File "/usr/lib/python2.2/site-packages/omniidl/main.py", line 313, in main
    files = parseArgs(argv[1:])
  File "/usr/lib/python2.2/site-packages/omniidl/main.py", line 171, in parseArgs
    sys.stderr.write("Error in arguments: " + e + "\n")
TypeError: cannot concatenate 'str' and 'instance' objects


Changing src/tool/omniidl/python/omniidl/main.py (line 171) to:
        sys.stderr.write("Error in arguments: " + str(e) + "\n")

fixes the "bug".


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw@jabber.at
mailto cmeerw at web.de