mailr13991 - /branches/gui_testing/gui/errors.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 29, 2011 - 13:48:
Author: bugman
Date: Fri Jul 29 13:48:37 2011
New Revision: 13991

URL: http://svn.gna.org/viewcvs/relax?rev=13991&view=rev
Log:
The gui_raise() function now prints the error message to stderr if the raise 
flag is not set.


Modified:
    branches/gui_testing/gui/errors.py

Modified: branches/gui_testing/gui/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/errors.py?rev=13991&r1=13990&r2=13991&view=diff
==============================================================================
--- branches/gui_testing/gui/errors.py (original)
+++ branches/gui_testing/gui/errors.py Fri Jul 29 13:48:37 2011
@@ -24,6 +24,7 @@
 """Module for handling errors in the GUI."""
 
 # Python module imports.
+import sys
 import wx
 
 
@@ -43,3 +44,8 @@
     # Throw the error to terminate execution.
     if raise_flag:
         raise relax_error
+
+    # Otherwise, send the text to STDERR.
+    else:
+        sys.stderr.write(relax_error.__str__())
+        sys.stderr.write("\n")




Related Messages


Powered by MHonArc, Updated Fri Jul 29 14:00:02 2011