Explorar o código

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

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>
Michael Gardner %!s(int64=9) %!d(string=hai) anos
pai
achega
0893550632
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: