Adds an error to the trace if required

def _add(self, error: "Err"):
        """
        Adds an error to the trace if required
        """
        if self.trace_errs is True:
            self.errors.append(error)