google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

Wrap certain exceptions in helpful error messages #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Certain common exceptions should present the user with a readable, helpful 
error message instead of Python tracebacks. Namely, OSErrors when performing 
filesystem operations (copy, move, delete) and MusicBrainz API errors should be 
handled during import.

The error messages should contain context about what when wrong. For filesystem 
operations, the files involved should be printed. For MusicBrainz API errors, 
the search terms should be shown. This will eliminate guesswork in deciding 
which album/file caused the problem.

Implementation strategy: For the filesystem operation helpers in beets.util, 
introduce new exception classes that inherit from OSError.

Original issue reported on code.google.com by adrian.sampson on 17 May 2012 at 6:54

GoogleCodeExporter commented 9 years ago
Added both of these as of 66c96e75d71f.

Original comment by adrian.sampson on 18 May 2012 at 10:46