Skip to content

Commit dad6001

Browse files
author
Erin
committed
Added logging of schema type to AvroUtils for UnsupportedOperationException not matching anything.
1 parent 4667a98 commit dad6001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schemas-core/src/main/java/org/cedar/schemas/avro/util/AvroUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ else if (value instanceof String) {
278278
break;
279279
}
280280
throw new UnsupportedOperationException("Unable to coerce value [" + value + "] of type ["
281-
+ (value == null ? "null" : value.getClass()) + "] for schema [" + schema.getFullName() + "]");
281+
+ (value == null ? "null" : value.getClass()) + "] for schema [" + schema.getFullName() + "] of schema type ["+schema.getType());
282282
}
283283

284284
public static <T extends IndexedRecord> Class<T> findAvroClass(String className) throws ClassNotFoundException {

0 commit comments

Comments
 (0)