From c3c39886fa630fc7090968a56ec47a621e23af2b Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Tue, 23 Jul 2024 11:15:47 -0500 Subject: [PATCH] improve error message for bad syntax --- .../uniform/fieldmappers/FieldDestructuringMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb-apis/adapters-api/src/main/java/io/nosqlbench/adapters/api/activityimpl/uniform/fieldmappers/FieldDestructuringMapper.java b/nb-apis/adapters-api/src/main/java/io/nosqlbench/adapters/api/activityimpl/uniform/fieldmappers/FieldDestructuringMapper.java index 9e46f7163..5cfee65f8 100644 --- a/nb-apis/adapters-api/src/main/java/io/nosqlbench/adapters/api/activityimpl/uniform/fieldmappers/FieldDestructuringMapper.java +++ b/nb-apis/adapters-api/src/main/java/io/nosqlbench/adapters/api/activityimpl/uniform/fieldmappers/FieldDestructuringMapper.java @@ -53,7 +53,7 @@ public class FieldDestructuringMapper implements Function, M return stringObjectMap; } } else { - throw new RuntimeException("During op mapping, can't parse something that is not a CharSequence: '" + fieldname + "' (type is " + o.getClass().getCanonicalName() + ")"); + throw new RuntimeException("During op mapping, can't parse something that is not a CharSequence: '" + fieldname + "' (type is " + o.getClass().getCanonicalName() + ") (value is:" + o.toString()); } } else { return stringObjectMap;