diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-02-25 14:08:56 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-02-25 14:08:56 -0500 |
commit | 7f93c994854fb6876a4008baf172cdb432eed612 (patch) | |
tree | fe4a8f8d70ccf0e0f3a006a620b19d93c32ad676 | |
parent | 1f0515a25551eee4dce6af96210aef8f6fdc0e8c (diff) | |
download | bcfg2-7f93c994854fb6876a4008baf172cdb432eed612.tar.gz bcfg2-7f93c994854fb6876a4008baf172cdb432eed612.tar.bz2 bcfg2-7f93c994854fb6876a4008baf172cdb432eed612.zip |
helpers: better error message when failing to read FileBacked
-rw-r--r-- | src/lib/Bcfg2/Server/Plugin/helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py index 3e7d68cd8..de02adc4e 100644 --- a/src/lib/Bcfg2/Server/Plugin/helpers.py +++ b/src/lib/Bcfg2/Server/Plugin/helpers.py @@ -1145,7 +1145,8 @@ class SpecificData(object): except UnicodeDecodeError: self.data = open(self.name, mode='rb').read() except: # pylint: disable=W0201 - LOGGER.error("Failed to read file %s" % self.name) + LOGGER.error("Failed to read file %s: %s" % (self.name, + sys.exc_info()[1])) class EntrySet(Debuggable): |