diff --git a/crnk-core/src/main/java/io/crnk/core/engine/internal/dispatcher/controller/ResourceUpsert.java b/crnk-core/src/main/java/io/crnk/core/engine/internal/dispatcher/controller/ResourceUpsert.java index 41865e53e..80b374107 100644 --- a/crnk-core/src/main/java/io/crnk/core/engine/internal/dispatcher/controller/ResourceUpsert.java +++ b/crnk-core/src/main/java/io/crnk/core/engine/internal/dispatcher/controller/ResourceUpsert.java @@ -155,7 +155,7 @@ private void setAttribute(ResourceInformation resourceInformation, Object instan ResourceField field = resourceInformation.findFieldByJsonName(attributeJsonName, queryContext.getRequestVersion()); if (field == null && resourceInformation.hasJsonField(attributeJsonName)) { - throw new BadRequestException(String.format("attribute %s not available for version {}", attributeJsonName, queryContext.getRequestVersion())); + throw new BadRequestException(String.format("attribute %s not available for version %s", attributeJsonName, queryContext.getRequestVersion())); } else if (field != null) { PreconditionUtil.verifyEquals(ResourceFieldType.ATTRIBUTE, field.getResourceFieldType(), "expected %s being an attribute", attributeJsonName); }