You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/07/15 11:57:44 UTC

(camel) 01/01: Google Drive Component: Fix error message

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

acosentino pushed a commit to branch google-drive-fix-error
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ad9fe04ede8482b89a6de98cfd821742a2be3dd0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 15 13:57:21 2025 +0200

    Google Drive Component: Fix error message
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../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);
         }
     }