From 04c4679074e505adcdd1611676baab0c06466934 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 1 Mar 2018 11:52:43 +0100 Subject: Check that FIGs don't write too many bytes --- src/DabMux.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/DabMux.cpp') diff --git a/src/DabMux.cpp b/src/DabMux.cpp index c0f5ad0..3185fb3 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -529,6 +529,10 @@ int main(int argc, char *argv[]) etiLog.level(error) << "Caught out of range exception : " << except.what(); returnCode = 1; } + catch (const std::logic_error& except) { + etiLog.level(error) << "Caught logic error : " << except.what(); + returnCode = 2; + } catch (const std::runtime_error& except) { etiLog.level(error) << "Caught runtime error : " << except.what(); returnCode = 2; -- cgit v1.2.3