#1488 closed defect (fixed)
CLI: 'bin/tahoe @foo ...' gives misleading error message if trying to run foo raises an exception
Reported by: | davidsarah | Owned by: | david-sarah@… |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | code-frontend-cli | Version: | 1.8.2 |
Keywords: | error cli reviewed | Cc: | |
Launchpad Bug: |
Description (last modified by daira)
$ bin/tahoe @coverage run --branch @tahoe debug trial
gives this error:
I am a "bin/tahoe" executable who is only for the convenience of running Tahoe from its source distribution -- I work only when invoked as the "tahoe" script that lives in the "bin" subdirectory of a Tahoe source code distribution, and only if you have already run "python setup.py build". I just tried to invoke my brother at "/home/davidsarah/tahoe/snotty/support/bin/tahoe" and got an exception. Traceback (most recent call last): File "bin/tahoe", line 116, in <module> res = subprocess.call(command, env=os.environ) File "/usr/lib/python2.6/subprocess.py", line 470, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.6/subprocess.py", line 623, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
The 'No such file or directory' error is correct, because no 'coverage' script was installed on this system. (The Ubuntu python-coverage package installs it as 'python-coverage' instead.) However the message before that complains about the wrong path, as though it were trying to invoke the support/bin/tahoe script rather than 'coverage'.
Attachments (1)
Change History (6)
Changed at 2011-08-17T23:36:28Z by davidsarah
comment:1 Changed at 2011-08-17T23:39:58Z by davidsarah
- Keywords review-needed added
- Owner davidsarah deleted
comment:2 Changed at 2011-08-17T23:40:49Z by davidsarah
- Summary changed from CLI: 'bin/tahoe @foo ...' gives misleading error message if foo doesn't exist to CLI: 'bin/tahoe @foo ...' gives misleading error message if trying to run foo raises an exception
comment:3 Changed at 2012-04-01T00:03:24Z by amiller
- Keywords reviewed added; review-needed removed
This patch fixes the incorrect error message as described.
amiller@amiller-asus:~/projects/tahoe-lafs$ bin/tahoe @foo ... I just tried to invoke my brother at "foo" and got an exception.
comment:4 Changed at 2012-04-01T02:29:40Z by david-sarah@…
- Owner set to david-sarah@…
- Resolution set to fixed
- Status changed from new to closed
In 07369205e1fe5a28:
(The changeset message doesn't reference this ticket)
comment:5 Changed at 2014-11-27T03:55:35Z by daira
- Description modified (diff)
- Milestone changed from soon to 1.9.0
Note: See
TracTickets for help on using
tickets.
bin/tahoe-script.template: fix the error message that is displayed when a runner script cannot be found. fixes #1488