mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 12:27:21 +00:00
Output error message if file cannot be parsed by the analyzer.
This commit is contained in:
parent
834af40235
commit
c58eb5b4a0
@ -1,3 +1,10 @@
|
||||
2010-01-28 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvextract: bug fix: Modes 'attachments', 'chapters', 'tags' and
|
||||
'cuesheet': mkvextract will output an error message if the file
|
||||
cannot be opened (e.g. because it does not exist or due to lack of
|
||||
access).
|
||||
|
||||
2010-01-24 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mmg: enhancement: Changing the interface language does not
|
||||
|
@ -113,7 +113,8 @@ extract_attachments(const std::string &file_name,
|
||||
// open input file
|
||||
try {
|
||||
analyzer = kax_analyzer_cptr(new kax_analyzer_c(file_name));
|
||||
analyzer->process(parse_mode);
|
||||
if (!analyzer->process(parse_mode))
|
||||
throw false;
|
||||
} catch (...) {
|
||||
show_error(boost::format(Y("The file '%1%' could not be opened for reading (%2%).")) % file_name % strerror(errno));
|
||||
return;
|
||||
|
@ -46,7 +46,8 @@ extract_chapters(const std::string &file_name,
|
||||
// open input file
|
||||
try {
|
||||
analyzer = kax_analyzer_cptr(new kax_analyzer_c(file_name));
|
||||
analyzer->process(parse_mode);
|
||||
if (!analyzer->process(parse_mode))
|
||||
throw false;
|
||||
} catch (...) {
|
||||
show_error(boost::format(Y("The file '%1%' could not be opened for reading (%2%).")) % file_name % strerror(errno));
|
||||
return;
|
||||
|
@ -203,7 +203,8 @@ extract_cuesheet(const std::string &file_name,
|
||||
// open input file
|
||||
try {
|
||||
analyzer = kax_analyzer_cptr(new kax_analyzer_c(file_name));
|
||||
analyzer->process(parse_mode);
|
||||
if (!analyzer->process(parse_mode))
|
||||
throw false;
|
||||
} catch (...) {
|
||||
show_error(boost::format(Y("The file '%1%' could not be opened for reading (%2%).")) % file_name % strerror(errno));
|
||||
return;
|
||||
|
@ -46,7 +46,8 @@ extract_tags(const std::string &file_name,
|
||||
// open input file
|
||||
try {
|
||||
analyzer = kax_analyzer_cptr(new kax_analyzer_c(file_name));
|
||||
analyzer->process(parse_mode);
|
||||
if (!analyzer->process(parse_mode))
|
||||
throw false;
|
||||
} catch (...) {
|
||||
show_error(boost::format(Y("The file '%1%' could not be opened for reading (%2%).")) % file_name % strerror(errno));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user