Use look up for function name

This commit is contained in:
Owen Stephens 2018-02-21 23:20:47 +00:00
parent 24f1923ff4
commit fad40041ca

View File

@ -43,6 +43,7 @@ import org.json.JSONException;
import org.json.JSONWriter;
import com.google.refine.expr.EvalError;
import com.google.refine.grel.ControlFunctionRegistry;
import com.google.refine.grel.Function;
import com.google.refine.util.StringUtils;
@ -68,7 +69,7 @@ public class ToString implements Function {
}
}
}
return new EvalError("ToString accepts an object and an optional second argument containing a date format string");
return new EvalError(ControlFunctionRegistry.getFunctionName(this) + " accepts an object and an optional second argument containing a date format string");
}