Patch from Laurent: typo leads to bad error messages.

This commit is contained in:
Eric Banks 2011-09-12 14:45:53 -04:00
parent 9d9d438bc4
commit ec4b30de6d
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ class RodBindingArgumentTypeDescriptor extends ArgumentTypeDescriptor {
}
if ( tribbleType == null )
if ( ! file.canRead() | !! file.isFile() ) {
if ( ! file.canRead() | ! file.isFile() ) {
throw new UserException.BadArgumentValue(name, "Couldn't read file to determine type: " + file);
} else {
throw new UserException.CommandLineException(