code: def error(cls, message, prefix=True, traceflag=False):
          
          # print (message, prefix)
          message = message or ""
          if prefix:
              text = "ERROR: "
          else:
              text = ""
          if cls.color:
              cls.cprint('FAIL', text, str(message))
          else:
              print(cls.txt_msg(text + str(message)))
  
          if traceflag and cls.debug:
              trace = traceback.format_exc().strip()
              if trace:
                  print()
                  print("Trace:")
                  print("\n    ".join(str(trace).splitlines()))
                  print()
docs: prints an error message
          :param message: the message
          :param prefix: a prefix for the message
          :param traceflag: if true the stack trace is retrieved and printed
          :return: