mailr15759 - /1.3/relax_errors.py


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

Header


Content

Posted by edward on April 17, 2012 - 16:37:
Author: bugman
Date: Tue Apr 17 16:37:19 2012
New Revision: 15759

URL: http://svn.gna.org/viewcvs/relax?rev=15759&view=rev
Log:
All RelaxErrors are now coloured red if the status.text_colouring flag is set.


Modified:
    1.3/relax_errors.py

Modified: 1.3/relax_errors.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_errors.py?rev=15759&r1=15758&r2=15759&view=diff
==============================================================================
--- 1.3/relax_errors.py (original)
+++ 1.3/relax_errors.py Tue Apr 17 16:37:19 2012
@@ -105,7 +105,10 @@
             save_state()
 
         # Modify the error message to include 'RelaxError' at the start.
-        return ("RelaxError: " + self.text + "\n")
+        if status.text_colouring:
+            return ("\033[31mRelaxError: " + self.text + "\033[0m\n")
+        else:
+            return ("RelaxError: " + self.text + "\n")
 
 
 class BaseArgError(BaseError):




Related Messages


Powered by MHonArc, Updated Tue Apr 17 17:00:01 2012