File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/org/embulk/util/config Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ private static Optional<String> callToJsonIfAvailable(final DataSource source) {
133133 private static ObjectNode callGetObjectNodeAndRebuildIfAvailable (final DataSource source , final ObjectMapper mapper ) {
134134 final Class <? extends DataSource > coreDataSourceImplClass = source .getClass ();
135135 if (!coreDataSourceImplClass .getCanonicalName ().equals ("org.embulk.config.DataSourceImpl" )) {
136- throw new ClassCastException ("DataSource specified is not org.embulk.config.DataSourceImpl." );
136+ throw new ClassCastException (
137+ "DataSource specified is not org.embulk.config.DataSourceImpl. "
138+ + "The DataSource instance is unexpected to implement getObjectNode(). "
139+ + "DataSource class: " + source .getClass ());
137140 }
138141 final Method getObjectNode = getGetObjectNodeMethod (coreDataSourceImplClass );
139142 if (getObjectNode == null ) {
You can’t perform that action at this time.
0 commit comments