This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 156e062b4b6 Google Drive Component: Fix error message (#18620)
156e062b4b6 is described below
commit 156e062b4b6f017d3cb64f37decd6e70e4673fe3
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Jul 15 14:17:13 2025 +0200
Google Drive Component: Fix error message (#18620)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../camel/component/google/drive/BatchGoogleDriveClientFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
index 8218f561a34..6d797e0da13 100644
---
a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
+++
b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
@@ -94,13 +94,13 @@ public class BatchGoogleDriveClientFactory implements
GoogleDriveClientFactory {
CamelContext camelContext, String serviceAccountKey,
Collection<String> scopes, String applicationName,
String delegate) {
if (serviceAccountKey == null) {
- throw new IllegalArgumentException("serviceAccountKey is required
to create Gmail client.");
+ throw new IllegalArgumentException("serviceAccountKey is required
to create Drive client.");
}
try {
Credential credential = authorizeServiceAccount(camelContext,
serviceAccountKey, delegate, scopes);
return new Drive.Builder(transport, jsonFactory,
credential).setApplicationName(applicationName).build();
} catch (Exception e) {
- throw new RuntimeCamelException("Could not create Gmail client.",
e);
+ throw new RuntimeCamelException("Could not create Drive client.",
e);
}
}