code: def add_error(self, error, critical=False):
      
      self.errors.append((error, critical))
docs: Adds an error to the state.
  
      Args:
        error: The text that will be added to the error list.
        critical: If set to True and the error is checked with check_errors, will
            dfTimewolf will abort.