Author: bugman
Date: Tue Aug 15 07:12:05 2006
New Revision: 2537

URL: http://svn.gna.org/viewcvs/relax?rev=2537&view=rev
Log:
Modified the sys.exit() statements to return 1 to the shell to indicate failure.


Modified:
    1.2/errors.py

Modified: 1.2/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/1.2/errors.py?rev=2537&r1=2536&r2=2537&view=diff
==============================================================================
--- 1.2/errors.py (original)
+++ 1.2/errors.py Tue Aug 15 07:12:05 2006
@@ -58,8 +58,8 @@
         # Write the error message to stderr.
         sys.stderr.write("RelaxError: " + message + "\n")
 
-        # Hard exit!
-        sys.exit()
+        # Hard exit (and return 1 to indicate failure)!
+        sys.exit(1)
 
 
     def error_no_exit(self, message, traceback=0, save=0):
@@ -203,8 +203,8 @@
         # Write the warning message to stderr.
         sys.stderr.write("RelaxWarning: " + message + "\n")
 
-        # Hard exit!
-        sys.exit()
+        # Hard exit (and return 1 to indicate failure)!
+        sys.exit(1)
 
 
 


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to