gcommit fails with "Unknown error" if NoWhoami is raised
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Fix Released
|
High
|
Edward Ari Bichetero |
Bug Description
If you have no whoami information set, and try to commit with gcommit, you get an "Unknown error". At the same time you get warnings on the terminal:
/home/andrew/
dialog.
/home/andrew/
response = dialog.run()
Note that '<email address hidden>' appears in the text description of NoWhoami.
Here's a fairly easy way to reproduce:
mkdir /tmp/fake_home
bzr init /tmp/a-branch
cd /tmp/a-branch
export EMAIL=
BZR_HOME=
Enter a commit message and click "Commit".
Presumably the fix involves making bzr-gtk formatting the error text differently?
As a secondary issue, it would be nice for "Unknown Error" situations to at least dump a traceback to stderr or something, rather than leave no clues.
Related branches
- Jelmer Vernooij (community): Approve (code)
-
Diff: 12 lines (+1/-1)1 file modifieddialog.py (+1/-1)
Changed in bzr-gtk: | |
assignee: | nobody → Edward Ari Bichetero (ebichete) |
status: | Triaged → Fix Committed |
Changed in bzr-gtk: | |
status: | Fix Committed → Fix Released |
milestone: | none → 0.103.0 |
We shouldn't be using markup in the error dialogs - we don't know what text is going to be in bzr exceptions.