Skip to content

Commit

Permalink
update api key error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanshah18 committed Feb 7, 2024
1 parent 0eaac91 commit a05852b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/pinecone/PineconeControlPlaneClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public PineconeControlPlaneClient(String apiKey) {

public PineconeControlPlaneClient(String apiKey, OkHttpClient okHttpClient) {
if(apiKey == null || apiKey.isEmpty()) {
throw new PineconeValidationException("apiKey is required and must not be empty or null");
throw new PineconeValidationException("The API key is required and must not be empty or null");
}
ApiClient apiClient = new ApiClient(okHttpClient);
apiClient.setApiKey(apiKey);
Expand Down

0 comments on commit a05852b

Please sign in to comment.