Skip to content

Commit

Permalink
BugFix Fixed mismatched number of args in string formats
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k authored and gsmet committed Aug 7, 2024
1 parent b3e6085 commit 93a0a2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public static void setHttpClientOptions(OidcCommonConfig oidcConfig, HttpClientO
}
} catch (IOException ex) {
throw new ConfigurationException(String.format(
"OIDC truststore file does not exist or can not be read",
oidcConfig.tls.trustStoreFile.get().toString()), ex);
"OIDC truststore file %s does not exist or can not be read",
oidcConfig.tls.trustStoreFile.get()), ex);
}
}
if (oidcConfig.tls.keyStoreFile.isPresent()) {
Expand All @@ -182,8 +182,8 @@ public static void setHttpClientOptions(OidcCommonConfig oidcConfig, HttpClientO

} catch (IOException ex) {
throw new ConfigurationException(String.format(
"OIDC keystore file does not exist or can not be read",
oidcConfig.tls.keyStoreFile.get().toString()), ex);
"OIDC keystore file %s does not exist or can not be read",
oidcConfig.tls.keyStoreFile.get()), ex);
}
}
Optional<ProxyOptions> proxyOpt = toProxyOptions(oidcConfig.getProxy());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ boolean isEnumConstantMessageKey(String key, IndexView index, ClassInfo bundleIn
return true;
}
throw new MessageBundleException(
String.format("%s is not an enum constant of %: %s", constant, maybeEnum, key));
String.format("%s is not an enum constant of %s: %s", constant, maybeEnum, key));
}
}
}
Expand Down

0 comments on commit 93a0a2f

Please sign in to comment.