From fad40041ca2603245c142b7af46edf0d45a4f1dc Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Wed, 21 Feb 2018 23:20:47 +0000 Subject: [PATCH] Use look up for function name --- main/src/com/google/refine/expr/functions/ToString.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/expr/functions/ToString.java b/main/src/com/google/refine/expr/functions/ToString.java index 2a3b54b82..0a03ae169 100644 --- a/main/src/com/google/refine/expr/functions/ToString.java +++ b/main/src/com/google/refine/expr/functions/ToString.java @@ -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"); }