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()
def error(self, message): logger.error(message) self.print_help() raise DvcParserError()
def error(self, message): sys.stderr.write('{}: {}\n'.format(logger.error_prefix(), message)) self.print_help() raise DvcParserError()