Skip to content

Commit

Permalink
minor error message fix
Browse files Browse the repository at this point in the history
The error message should contain the type and not a supplier object.
  • Loading branch information
redmitry authored Jul 26, 2024
1 parent fe10cf4 commit 29deeba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public <T> T get(TypeSupplier<T> supplier) {
if (REFERENCE_READER.test(Objects.requireNonNull(supplier, "supplier is required"))) {
return REFERENCE_READER.convert(supplier, value);
}
throw new UnsupportedOperationException("The type " + supplier + " is not supported");
throw new UnsupportedOperationException("The type " + supplier.get().getTypeName() + " is not supported");
}

@Override
Expand Down

0 comments on commit 29deeba

Please sign in to comment.