aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 21:22:06 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 21:39:37 +0200
commit7c2a94b623c4753625576d0699d95831f275fd09 (patch)
tree2486a98e301e5ccbeeccd506c2884bd0e210e842 /src
parentefce52fcdb34e77e30769dd998daff1f608688ef (diff)
downloaddabmux-7c2a94b623c4753625576d0699d95831f275fd09.tar.gz
dabmux-7c2a94b623c4753625576d0699d95831f275fd09.tar.bz2
dabmux-7c2a94b623c4753625576d0699d95831f275fd09.zip
Fix exception handing
Diffstat (limited to 'src')
-rw-r--r--src/DabMux.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 0b3f2e8..30f38d7 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -2014,15 +2014,15 @@ int main(int argc, char *argv[])
}
}
- catch (MuxInitException& except) {
+ catch (const MuxInitException& except) {
etiLog.level(error) << "Caught multiplex initialisation error: " <<
except.what();
}
- catch (std::invalid_argument& except) {
- etiLog.level(error) << "Caught invalid argument : %s", except.what();
+ catch (const std::invalid_argument& except) {
+ etiLog.level(error) << "Caught invalid argument : " << except.what();
}
- catch (std::runtime_error& except) {
- etiLog.level(error) << "Caught runtime error : %s", except.what();
+ catch (const std::runtime_error& except) {
+ etiLog.level(error) << "Caught runtime error : " << except.what();
}
etiLog.log(debug, "exiting...\n");