[Pkg-running-devel] [antpm] 35/39: catch a bunch of exceptions

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Fri Nov 7 11:13:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit 27e050caa4e8558a964ccabe19bd957e8ce07619
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Sun Aug 17 15:33:12 2014 +0200

    catch a bunch of exceptions
    
    coverity complained about uncaught boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_any_cast> >
---
 src/antpm-downloader.cpp | 6 ++++++
 src/antpm-fit2gpx.cpp    | 6 ++++++
 src/antpm-usbmon2ant.cpp | 7 +++++++
 3 files changed, 19 insertions(+)

diff --git a/src/antpm-downloader.cpp b/src/antpm-downloader.cpp
index 99473f5..91e969f 100644
--- a/src/antpm-downloader.cpp
+++ b/src/antpm-downloader.cpp
@@ -186,6 +186,12 @@ main(int argc, char** argv)
     cerr << desc << "\n";
     return EXIT_FAILURE;
   }
+  catch(std::exception& ex)
+  {
+    cerr << ex.what() << "\n";
+    cerr << desc << "\n";
+    return EXIT_FAILURE;
+  }
 
   if(vm.count("version") || vm.count("V"))
   {
diff --git a/src/antpm-fit2gpx.cpp b/src/antpm-fit2gpx.cpp
index 0c2f302..d78b25f 100644
--- a/src/antpm-fit2gpx.cpp
+++ b/src/antpm-fit2gpx.cpp
@@ -115,6 +115,12 @@ main(int argc, char** argv)
     cerr << desc << "\n";
     return EXIT_FAILURE;
   }
+  catch(std::exception& ex)
+  {
+    cerr << ex.what() << "\n";
+    cerr << desc << "\n";
+    return EXIT_FAILURE;
+  }
 
   if(vm.count("version") || vm.count("V"))
   {
diff --git a/src/antpm-usbmon2ant.cpp b/src/antpm-usbmon2ant.cpp
index 9954819..2b26f00 100644
--- a/src/antpm-usbmon2ant.cpp
+++ b/src/antpm-usbmon2ant.cpp
@@ -90,6 +90,13 @@ main(int argc, char** argv)
     cerr << desc << "\n";
     return EXIT_FAILURE;
   }
+  catch(std::exception& ex)
+  {
+    cerr << ex.what() << "\n";
+    cerr << desc << "\n";
+    return EXIT_FAILURE;
+  }
+
 
   if(vm.count("version") || vm.count("V"))
   {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list