slight improvement to two error messages

This commit is contained in:
Gavin King 2024-02-27 10:39:27 +01:00
parent fb4580cb6e
commit 2f4a6ebcaf
1 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ public class ParameterMetadataImpl implements ParameterMetadataImplementor {
final String errorMessage = String.format(
Locale.ROOT,
"Could not locate named parameter [%s], expecting one of [%s]",
"No parameter named ':%s' in query with named parameters [%s]",
name,
String.join( ", ", getNamedParameterNames() )
);
@ -299,7 +299,7 @@ public class ParameterMetadataImpl implements ParameterMetadataImplementor {
final String errorMessage = String.format(
Locale.ROOT,
"Could not locate ordinal parameter [%s], expecting one of [%s]",
"No parameter labelled '?%s' in query with ordinal parameters [%s]",
positionLabel,
StringHelper.join( ", ", getOrdinalParameterLabels() )
);