From 9e35ea3775a12100ad1e9ffbfb3ddd2c47d56d2c Mon Sep 17 00:00:00 2001 From: David Huynh Date: Fri, 15 Oct 2010 01:00:51 +0000 Subject: [PATCH] Better error message for numeric range facet if there's no numeric value. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1551 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/refine/browsing/facets/RangeFacet.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/src/com/google/refine/browsing/facets/RangeFacet.java b/main/src/com/google/refine/browsing/facets/RangeFacet.java index 6b63cf11e..d2c696a46 100644 --- a/main/src/com/google/refine/browsing/facets/RangeFacet.java +++ b/main/src/com/google/refine/browsing/facets/RangeFacet.java @@ -107,6 +107,8 @@ public class RangeFacet implements Facet { writer.key(FROM); writer.value(_from); writer.key(TO); writer.value(_to); + } else { + writer.key("error"); writer.value("No numeric value present."); } writer.key("baseNumericCount"); writer.value(_baseNumericCount);