Skip to content

Commit

Permalink
Improve error message when failing to convert parameter types in Skyl…
Browse files Browse the repository at this point in the history
…ark function calls.

--
MOS_MIGRATED_REVID=137303042
  • Loading branch information
cgrushko authored and laszlocsomor committed Oct 27, 2016
1 parent 3bf723e commit 1229160
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ private ArgumentListConversionResult convertArgumentList(
if (!param.isAssignableFrom(value.getClass())) {
return ArgumentListConversionResult.fromError(
String.format(
"Cannot convert parameter at position %d to type %s", i, param.toString()));
"Cannot convert parameter at position %d from type %s to type %s",
i, EvalUtils.getDataTypeName(value), param.toString()));
}
builder.add(value);
i++;
Expand Down

0 comments on commit 1229160

Please sign in to comment.