Exemple #1
0
    def error(self, message):
        """Custom error method.
        Args:
            message (str): error message.

        Raises:
            dvc.exceptions.DvcParser: dvc parser exception.
        """
        logger.error(message)
        self.print_help()
        raise DvcParserError()
Exemple #2
0
 def error(self, message):
     logger.error(message)
     self.print_help()
     raise DvcParserError()
Exemple #3
0
 def error(self, message):
     sys.stderr.write('{}: {}\n'.format(logger.error_prefix(), message))
     self.print_help()
     raise DvcParserError()