Pārlūkot izejas kodu

hpcc-13997 Added red error message to cluster_script.py error output

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>
Michael Gardner 9 gadi atpakaļ
vecāks
revīzija
0893550632
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      initfiles/sbin/cluster_script.py

+ 1 - 1
initfiles/sbin/cluster_script.py

@@ -215,7 +215,7 @@ class ScriptExecution(object):
                 no_error_found = False
         script_name = os.path.basename(self.script_file)
         if not no_error_found:
-            print("\n\nError found during " + script_name + " execution. ")
+            print("\n\n\033[91mError found during " + script_name + " execution.\033[0m")
             print("Reference following log for more information: ")
             print(self.log_file)
         else: