kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject [kafka] branch trunk updated: MINOR: FileConfigProvider#get should keep failure exception (#11130)
Date Wed, 04 Aug 2021 16:58:51 GMT
This is an automated email from the ASF dual-hosted git repository.

cmccabe pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ad13c66d MINOR: FileConfigProvider#get should keep failure exception (#11130)
ad13c66d is described below

commit ad13c66d8e98cc526e97ec8ec6b5f5cea96dc275
Author: Colin Patrick McCabe <cmccabe@confluent.io>
AuthorDate: Wed Aug 4 09:56:37 2021 -0700

    MINOR: FileConfigProvider#get should keep failure exception (#11130)
    
    Reviewers: Luke Chen <showuon@gmail.com>, Jason Gustafson <jason@confluent.io>
---
 .../org/apache/kafka/common/config/provider/FileConfigProvider.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java
b/clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java
index 4e376ec..3920da0 100644
--- a/clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java
+++ b/clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java
@@ -62,7 +62,7 @@ public class FileConfigProvider implements ConfigProvider {
             }
             return new ConfigData(data);
         } catch (IOException e) {
-            throw new ConfigException("Could not read properties from file " + path);
+            throw new ConfigException("Could not read properties from file " + path, e);
         }
     }
 
@@ -89,7 +89,7 @@ public class FileConfigProvider implements ConfigProvider {
             }
             return new ConfigData(data);
         } catch (IOException e) {
-            throw new ConfigException("Could not read properties from file " + path);
+            throw new ConfigException("Could not read properties from file " + path, e);
         }
     }
 

Mime
View raw message