summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-06-23 11:24:34 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-06-23 11:24:34 +0200
commit2629f182e8ae26c155fc895a3b6dd751485ef2a7 (patch)
tree1a0d0640fec3f24d89b33d2f6ed391bf4a6b78a6 /src/DabMux.cpp
parent27e489a4b40a139ace3c679215e44f109f006127 (diff)
downloaddabmux-2629f182e8ae26c155fc895a3b6dd751485ef2a7.tar.gz
dabmux-2629f182e8ae26c155fc895a3b6dd751485ef2a7.tar.bz2
dabmux-2629f182e8ae26c155fc895a3b6dd751485ef2a7.zip
Add a few sanity checks for the configuration parser
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 3870df5..5d109fa 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -481,6 +481,10 @@ int main(int argc, char *argv[])
etiLog.level(error) << "Caught invalid argument : " << except.what();
returnCode = 1;
}
+ catch (const std::out_of_range& except) {
+ etiLog.level(error) << "Caught out of range exception : " << except.what();
+ returnCode = 1;
+ }
catch (const std::runtime_error& except) {
etiLog.level(error) << "Caught runtime error : " << except.what();
returnCode = 2;