diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-02-17 13:12:42 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-02-17 13:12:42 +0200 |
commit | a5e1db0be61f978693e922a5f867ed787016b564 (patch) | |
tree | 77b9b95c47823cb4403c1076aea8096a147b3c5c /src/main/java/shcm/shsupercm | |
parent | d510448fa7e40b31d174d5e26cf601ee63a632e0 (diff) | |
download | CITResewn-a5e1db0be61f978693e922a5f867ed787016b564.tar.gz CITResewn-a5e1db0be61f978693e922a5f867ed787016b564.tar.bz2 CITResewn-a5e1db0be61f978693e922a5f867ed787016b564.zip |
Improved exceptions
Diffstat (limited to 'src/main/java/shcm/shsupercm')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITRegistry.java | 2 | ||||
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyKey.java | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITRegistry.java b/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITRegistry.java index 53a5226..326ec76 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITRegistry.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITRegistry.java @@ -44,7 +44,7 @@ public class CITRegistry { public static CITCondition parseCondition(PropertyKey key, PropertyValue value, PropertyGroup properties) throws CITParsingException { CITConditionContainer<? extends CITCondition> conditionContainer = CONDITIONS.get(key); if (conditionContainer == null) { - logWarnLoading(CITParsingException.descriptionOf("Unknown condition type", properties, value.position())); + logWarnLoading(CITParsingException.descriptionOf("Unknown condition type \"" + key.toString() + "\"", properties, value.position())); return new AlwaysFailCondition(); } diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyKey.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyKey.java index b861a63..37a698d 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyKey.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/format/PropertyKey.java @@ -11,4 +11,9 @@ public record PropertyKey(String namespace, String path) { } return new PropertyKey(split[0], split[1]); } + + @Override + public String toString() { + return namespace + ":" + path; + } } |