From 5b792f5c2fadad6068eb120eeb56cff647cf9701 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 3 Dec 2013 22:08:25 +0100 Subject: [PATCH] mmg: chapter editor: output exception's text in error message --- src/mmg/tabs/chapters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mmg/tabs/chapters.cpp b/src/mmg/tabs/chapters.cpp index bd631d3b5..e5ff38fee 100644 --- a/src/mmg/tabs/chapters.cpp +++ b/src/mmg/tabs/chapters.cpp @@ -617,9 +617,9 @@ tab_chapters::load(wxString name) { new_chapters = ebml_element_cptr(parse_chapters(wxMB(name), 0, -1, 0, "", "", true, &source_is_simple_format)); source_is_kax_file = false; } - } catch (mtx::exception &) { + } catch (mtx::exception &ex) { analyzer.reset(); - wxString s = Z("This file does not contain valid chapters."); + auto s = wxU(boost::format(Y("This file does not contain valid chapters. Error message from the parser: %1%")) % ex); break_line(s); while (s[s.Length() - 1] == wxT('\n')) s.Remove(s.Length() - 1);