Преглед на файлове

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

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>
Michael Gardner преди 9 години
родител
ревизия
0893550632
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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: