aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-28 17:13:52 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-28 17:13:52 +0100
commitc3dbbec39aef32789aacb872c88801f0c5d15ef7 (patch)
treef935c3ae09246c4dbb714d1fd73a2f874925802f /src/DabMod.cpp
parentaec2a980fc37bd5d28f06c8e48a98b51ae65ac32 (diff)
downloaddabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.tar.gz
dabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.tar.bz2
dabmod-c3dbbec39aef32789aacb872c88801f0c5d15ef7.zip
Catch all exceptions as const
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 57acd40..ad8101c 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -334,7 +334,7 @@ int launch_modulator(int argc, char* argv[])
try {
ediUdpInput.rxPacket();
}
- catch (std::runtime_error& e) {
+ catch (const std::runtime_error& e) {
etiLog.level(warn) << "EDI input: " << e.what();
running = 0;
break;
@@ -606,13 +606,13 @@ int main(int argc, char* argv[])
try {
return launch_modulator(argc, argv);
}
- catch (std::invalid_argument& e) {
+ catch (const std::invalid_argument& e) {
std::string what(e.what());
if (not what.empty()) {
std::cerr << "Modulator error: " << what << std::endl;
}
}
- catch (std::runtime_error& e) {
+ catch (const std::runtime_error& e) {
std::cerr << "Modulator runtime error: " << e.what() << std::endl;
}