Fix error message when reading config file failed

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Sheidan 2025-07-20 22:32:09 +02:00 committed by GitHub
commit 236edae071
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -438,7 +438,7 @@ class DconfPreference(object):
with open(path, 'r') as fd:
raw_config = fd.read()
except IOError as ex:
self.module.fail_json(msg='dconf failed while reading configuration file with error: %s' % ex)
self.module.fail_json(msg='Failed while reading configuration file %s with error: %s' % (path, ex))
# Parse configuratoin file
config = ConfigParser()