You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by cm...@apache.org on 2021/08/04 16:58:51 UTC

[kafka] branch trunk updated: MINOR: FileConfigProvider#get should keep failure exception (#11130)

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 <cm...@confluent.io>
AuthorDate: Wed Aug 4 09:56:37 2021 -0700

    MINOR: FileConfigProvider#get should keep failure exception (#11130)
    
    Reviewers: Luke Chen <sh...@gmail.com>, Jason Gustafson <ja...@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);
         }
     }