This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.8.x by this push:
     new 50b4121c56b Google Drive Component: Fix error message
50b4121c56b is described below

commit 50b4121c56baeaf758e4709f63789cfa21f438f2
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Jul 15 13:57:21 2025 +0200

    Google Drive Component: Fix error message
    
    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);
         }
     }
 

Reply via email to