diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-02-27 10:30:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-02-27 10:30:57 +0100 |
commit | 6db4e5b3ad28973601b8e7426a4cffa01322b9a2 (patch) | |
tree | 20ad9a5dc6a18dd513f4a254f7a86ddd2eba52f3 /src/DabMod.cpp | |
parent | 201d711a1d3dfbe46d622871731005937598e790 (diff) | |
parent | c3dbbec39aef32789aacb872c88801f0c5d15ef7 (diff) | |
download | dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.tar.gz dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.tar.bz2 dabmod-6db4e5b3ad28973601b8e7426a4cffa01322b9a2.zip |
Merge branch 'next' into lime
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 3806048..8267060 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -354,7 +354,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; @@ -626,13 +626,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; } |