Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Better logging for conflicts in attributes

Michael Rademakeraa69fd101a03
diff --git a/model/src/main/java/org/openremote/model/asset/AssetAttribute.java b/model/src/main/java/org/openremote/model/asset/AssetAttribute.java
index 35302fd24..753cc1178 100644
--- a/model/src/main/java/org/openremote/model/asset/AssetAttribute.java
+++ b/model/src/main/java/org/openremote/model/asset/AssetAttribute.java
@@ -85,7 +85,7 @@ public class AssetAttribute extends Attribute {
super(name, attributeDescriptor.getValueDescriptor(), value);
if (value != null) {
if (value.getType() != attributeDescriptor.getValueDescriptor().getValueType()) {
- throw new IllegalArgumentException("Provided value type is not compatible with this attribute type");
+ throw new IllegalArgumentException("Provided value type is not compatible with this attribute type for: " + attributeDescriptor.getAttributeName());
}
}
setValue(value, timestamp);