Skip to content

Conversation

pingsutw
Copy link

No description provided.

@xkrogen
Copy link
Collaborator

xkrogen commented Jul 31, 2019

Hi @pingsutw , I actually don't agree that this is correct. Here is the original code:

    Preconditions.checkArgument(resource.getType() == LocalResourceType.ARCHIVE || srcPaths.length == 1,
        "Can only specify multiple source paths if using an ARCHIVE type");

The preconditions say "the resource is an archive OR there is only one source path", i.e., if the resource is an archive then more than one source path is okay. The message is saying that you can only specify multiple source paths if you use archive, which is consistent with the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants