Skip to content

Commit 7f8d0f6

Browse files
committed
fix: passing the whole property name to the error message
closes: #1068 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
1 parent 5a96de2 commit 7f8d0f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/keystore/src/main/java/io/smallrye/config/source/keystore/KeyStoreConfigSourceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private static ConfigValue getPassword(final ConfigSourceContext context, final
127127
passwordName = "smallrye.config.source.keystore.\"" + name + "\".password";
128128
password = context.getValue(passwordName);
129129
if (password == null || password.getValue() == null) {
130-
throw new NoSuchElementException(ConfigMessages.msg.propertyNotFound(name));
130+
throw new NoSuchElementException(ConfigMessages.msg.propertyNotFound(passwordName));
131131
}
132132
}
133133
return password;

0 commit comments

Comments
 (0)