Better error message for name/type clashes.
This commit is contained in:
parent
27f0748b33
commit
7ea9196321
|
|
@ -160,7 +160,7 @@ public class ListFileUtils {
|
||||||
rodBinding.getName(), rodBinding.getTribbleType(), builderForValidation.userFriendlyListOfAvailableFeatures()));
|
rodBinding.getName(), rodBinding.getTribbleType(), builderForValidation.userFriendlyListOfAvailableFeatures()));
|
||||||
if ( ! rodBinding.getType().isAssignableFrom(descriptor.getFeatureClass()) )
|
if ( ! rodBinding.getType().isAssignableFrom(descriptor.getFeatureClass()) )
|
||||||
throw new UserException.BadArgumentValue(rodBinding.getName(),
|
throw new UserException.BadArgumentValue(rodBinding.getName(),
|
||||||
String.format("Field %s expected type %s, but the type of the input file provided on the command line was %s",
|
String.format("Field %s expected type %s, but the type of the input file provided on the command line was %s. Please make sure that you have provided the correct file type and/or that you are not binding your rod to a name matching one of the available types.",
|
||||||
rodBinding.getName(), rodBinding.getType(), descriptor.getName()));
|
rodBinding.getName(), rodBinding.getType(), descriptor.getName()));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue