[feedgnuplot] 01/42: I now always 'exit -1' on error

Dima Kogan dkogan-guest at alioth.debian.org
Sun Oct 20 08:04:02 UTC 2013


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

dkogan-guest pushed a commit to tag v1.25
in repository feedgnuplot.

commit 707196580a0bd9beb1acd2593f103e76348e0aa0
Author: Dima Kogan <dima at secretsauce.net>
Date:   Fri Jun 14 23:13:54 2013 -0700

    I now always 'exit -1' on error
---
 bin/feedgnuplot |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/feedgnuplot b/bin/feedgnuplot
index 7c0c4e0..091be88 100755
--- a/bin/feedgnuplot
+++ b/bin/feedgnuplot
@@ -173,7 +173,7 @@ sub interpretCommandline
       else
       {
         print STDERR "--stream can only take in values >=0 or 'trigger'\n";
-        exit 1;
+        exit -1;
       }
     }
 
@@ -184,7 +184,7 @@ sub interpretCommandline
     elsif ( $options->{stream} <= 0)
     {
       print STDERR "--stream can only take in values >=0 or 'trigger'\n";
-      exit 1;
+      exit -1;
     }
   }
 
@@ -655,7 +655,7 @@ sub getCurve
   {
     print STDERR "Tried to exceed the --maxcurves setting.\n";
     print STDERR "Invoke with a higher --maxcurves limit if you really want to do this.\n";
-    exit;
+    exit -1;
   }
 
   my ($id) = @_;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git



More information about the debian-science-commits mailing list