OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0001045OMNeT++command line toolspublic2018-06-19 16:482018-06-19 16:48
0001045: opp_runall dumps Python stack trace instead of proper, human-readable error reporting
Example: trying to run a nonexistent program ./foo:

$ opp_runall ./foo
Traceback (most recent call last):
  File "/home/andras/projects/omnetpp/bin/opp_runall", line 218, in <module>
  File "/home/andras/projects/omnetpp/bin/opp_runall", line 64, in run
    runNumbers = self.resolveRunNumbers(opts.simProgArgs)
  File "/home/andras/projects/omnetpp/bin/opp_runall", line 115, in resolveRunNumbers
    output = subprocess.check_output(tmpArgs)
  File "/usr/lib/python2.7/", line 567, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

The expected output would be something like this:
"Error running simulation: ./foo: No such file or directory" (and no stack trace)

No tags attached.
Issue History
2018-06-19 16:48andrasNew Issue

There are no notes attached to this issue.