diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-18 08:40:50 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-18 08:40:50 +0100 |
commit | 37133dceeb541c42a02390e9a461d7c2802e6841 (patch) | |
tree | c39dafa5ccc222254bcbe902eb5cc37c4270ac51 | |
parent | 5340215304193f18af3bc76c7ae7a6a79f008339 (diff) | |
download | dabmux-37133dceeb541c42a02390e9a461d7c2802e6841.tar.gz dabmux-37133dceeb541c42a02390e9a461d7c2802e6841.tar.bz2 dabmux-37133dceeb541c42a02390e9a461d7c2802e6841.zip |
zmq2edi: also catch logic errors in main()
-rw-r--r-- | src/zmq2edi/zmq2edi.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zmq2edi/zmq2edi.cpp b/src/zmq2edi/zmq2edi.cpp index f7d733c..885f01d 100644 --- a/src/zmq2edi/zmq2edi.cpp +++ b/src/zmq2edi/zmq2edi.cpp @@ -426,8 +426,11 @@ int main(int argc, char **argv) try { return start(argc, argv); } - catch (std::runtime_error &e) { - etiLog.level(error) << "Error: " << e.what(); + catch (const std::runtime_error &e) { + etiLog.level(error) << "Runtime error: " << e.what(); + } + catch (const std::logic_error &e) { + etiLog.level(error) << "Logic error! " << e.what(); } return 1; |