def packageNameForProto(file_path):
    package_name = None
    error_message = []
    result = PROTO_PACKAGE_REGEX.search(readFile(file_path))
    if ((result is not None) and (len(result.groups()) == 1)):
        package_name = result.group(1)
    if (package_name is None):
        error_message = [('Unable to find package name for proto file: %s' % file_path)]
    return [package_name, error_message]
def packageNameForProto(file_path):
    package_name = None
    error_message = []
    result = PROTO_PACKAGE_REGEX.search(readFile(file_path))
    if ((result is not None) and (len(result.groups()) == 1)):
        package_name = result.group(1)
    if (package_name is None):
        error_message = [('Unable to find package name for proto file: %s' % file_path)]
    return [package_name, error_message]