OSError from _readdir is printed without a useful filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Pool |
Bug Description
When an OSError occurs, eg because of an environmental problem, bzr tends to print it without the filename, which makes it harder to debug.
The python error has a filename attribute; we should print it.
Example:
No handlers could be found for logger "bzr"
bzr: ERROR: exceptions.OSError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
show_
File "/usr/lib/
want_
File "/usr/lib/
want_
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
want_
File "/usr/lib/
want_
File "_dirstate_
File "_dirstate_
File "_dirstate_
File "/usr/lib/
dirblock = sorted(
File "_readdir_pyx.pyx", line 237, in _readdir_
File "_readdir_pyx.pyx", line 303, in _readdir_
OSError: [Errno 13] Permission denied
Changed in bzr: | |
status: | Fix Committed → Fix Released |
Reported by Mez on irc.