From 7da56bd6fe0b7da6ed4e3fb0fce8940ee62a5ebc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 1 Sep 2010 22:56:04 +0200 Subject: [PATCH] Exit after an error & report correct error code --- ChangeLog | 6 ++++++ src/extract/mkvextract.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 91310bd65..0df2ed8af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-01 Moritz Bunkus + + * mkvextract: bug fix: Errors such as 'file does not exist' did + not cause mkvextract to quit. Instead it continued and exited with + the result code 0. + 2010-08-28 Moritz Bunkus * mkvmerge: bug fix: Certain frames in certain h.264/AVC raw diff --git a/src/extract/mkvextract.cpp b/src/extract/mkvextract.cpp index b808ae0a4..c654bf4bd 100644 --- a/src/extract/mkvextract.cpp +++ b/src/extract/mkvextract.cpp @@ -66,7 +66,7 @@ show_element(EbmlElement *l, void show_error(const std::string &error) { - mxinfo(boost::format("(%1%) %2%\n") % NAME % error); + mxerror(boost::format("(%1%) %2%\n") % NAME % error); } static void