* morituri/rip/main.py:
Give a nice error message if cdrdao cannot read the disc. Fixes #29.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/rip/main.py:
|
||||
Give a nice error message if cdrdao cannot read the disc.
|
||||
Fixes #29.
|
||||
|
||||
2011-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/program/cdparanoia.py:
|
||||
|
||||
@@ -23,6 +23,14 @@ def main(argv):
|
||||
sys.stderr.write('rip: error: missing dependency "%s"\n' %
|
||||
e.exception.dependency)
|
||||
return 255
|
||||
# FIXME: move this exception
|
||||
from morituri.program import cdrdao
|
||||
if isinstance(e.exception, cdrdao.DeviceOpenException):
|
||||
sys.stderr.write("""rip: error: cannot read CD from drive.
|
||||
cdrdao says:
|
||||
%s
|
||||
""" % e.exception.msg)
|
||||
return 255
|
||||
raise
|
||||
|
||||
if ret is None:
|
||||
|
||||
Reference in New Issue
Block a user