exception could provide more info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mortoray.com |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In your example on pypi.python.
If you try to actually use this in an example, it exceptions but the exception doesn't point back to the failed command.
It would be helpful to know with command in a list of commands caused the exception.
>>> from shelljob import job
>>> jm = job.FileMonitor()
>>> jm.run(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/
File "build/
File "/opt/local/
errread, errwrite)
File "/opt/local/
raise child_exception
OSError: [Errno 2] No such file or directory
I agree it would be nice to have the failed command in the exception. This is just the underlying Python exception though, which means Python itself doesn't report the command. I'll see if I can somehow wrap the exceptions, but that would mean it would no longer be an OSError. Hmm...