mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Improve error message if config properties conflict
This commit is contained in:
committed by
Guillaume Smet
parent
021e140554
commit
e18c0eec4b
@@ -67,7 +67,9 @@ public final class PatternMapBuilder {
|
||||
Container matched = patternMap.getMatched();
|
||||
if (matched != null) {
|
||||
throw new IllegalArgumentException(
|
||||
"Multiple matching properties for name \"" + matched.getPropertyName() + "\"");
|
||||
"Multiple matching properties for name \"" + matched.getPropertyName()
|
||||
+ "\" property was matched by both " + container.findField() + " and " + matched.findField()
|
||||
+ ". This is likely because you have an incompatible combination of extensions that both define the same properties (e.g. including both reactive and blocking database extensions)");
|
||||
}
|
||||
patternMap.setMatched(container);
|
||||
} else if (member instanceof ClassDefinition.MapMember) {
|
||||
|
||||
Reference in New Issue
Block a user