bzr shows stack trace if BZR_PLUGINS_AT at doesn't have value is specific format

Bug #591215 reported by Parth Malwankar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

I incorrectly (i.e. without reading the docs) set the value of BZR_PLUGINS_AT to path. This causes bzr to print the stack trace with "bzr: ERROR: exceptions.ValueError: need more than 1 value to unpack". It would be good to have a nicer error message without the stack trace saying that the value should be in "plugin_name@path_to_plugin_source:..." format or something similar.

[grep-release]% echo $BZR_PLUGINS_AT
/home/parthm/tmp/grep-release

[grep-release]% bzr plugins
bzr: ERROR: exceptions.ValueError: need more than 1 value to unpack

Traceback (most recent call last):
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1066, in run_bzr
    load_plugins()
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/plugin.py", line 232, in load_plugins
    load_from_path(set_plugins_path(path))
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/plugin.py", line 104, in set_plugins_path
    plugin_name, plugin_path = spec.split('@')
ValueError: need more than 1 value to unpack

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-06-08T11:38.crash
if a bug-reporting window does not automatically appear.
[grep-release]%

Related branches

Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.2b4
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.