Don't print traceback for NoSuchFile error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Triaged
|
Low
|
Unassigned |
Bug Description
Steps to reproduce:
* Remove file from tree
* bzr gdiff
Actual results:
* The following error is writen to the console:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
old_label='', new_label='',
File "/usr/lib/
return differ.
File "/usr/lib/
self.
File "/usr/lib/
old_kind = self.old_
File "/usr/lib/
return self._kind(relpath)
File "/usr/lib/
kind = file_kind(abspath)
File "/usr/lib/
raise errors.
bzrlib.
Expected results:
* No error written to the console.
Am Donnerstag, den 20.12.2007, 16:10 +0000 schrieb Gary van der Merwe: python2. 5/site- packages/ bzrlib/ plugins/ gtk/diff. py", line 382, in _treeview_cursor_cb view.show_ diff(specific_ files) python2. 5/site- packages/ bzrlib/ plugins/ gtk/diff. py", line 242, in show_diff python2. 5/site- packages/ bzrlib/ diff.py" , line 378, in show_diff_trees show_diff( specific_ files, extra_trees) python2. 5/site- packages/ bzrlib/ diff.py" , line 710, in show_diff python2. 5/site- packages/ bzrlib/ diff.py" , line 743, in diff tree.kind( file_id) python2. 5/site- packages/ bzrlib/ workingtree_ 4.py", line 545, in kind python2. 5/site- packages/ bzrlib/ workingtree_ 4.py", line 549, in _kind python2. 5/site- packages/ bzrlib/ osutils. py", line 153, in file_kind NoSuchFile( f) errors. NoSuchFile: No such file: u'/home/ garyvdm/ picard/ dev/resources/ images/ 22x22/media- playback- start.png'
> Public bug reported:
>
> Steps to reproduce:
> * Remove file from tree
> * bzr gdiff
>
> Actual results:
> * The following error is writen to the console:
> Traceback (most recent call last):
> File "/usr/lib/
> self.diff_
> File "/usr/lib/
> old_label='', new_label='',
> File "/usr/lib/
> return differ.
> File "/usr/lib/
> self.diff(file_id, path, path)
> File "/usr/lib/
> old_kind = self.old_
> File "/usr/lib/
> return self._kind(relpath)
> File "/usr/lib/
> kind = file_kind(abspath)
> File "/usr/lib/
> raise errors.
> bzrlib.
>
> Expected results:
> * No error written to the console.
I think it's actually correct that it is not showing you anything but
giving an error. It should display a single-line error rather than a
traceback though.
status triaged
importance low
summary "Don't print traceback for NoSuchFile error"
Cheers,
Jelmer samba.org/ ~jelmer/
--
Jelmer Vernooij <email address hidden> - http://
Jabber: <email address hidden>