diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 0c5281c4d..3aaa933be 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -1688,7 +1688,8 @@ def read_profile(file, active_profile): try: with open_file_read(file) as f_in: data = f_in.readlines() - except IOError: + except IOError as e: + aaui.UI_Important('WARNING: Error reading file %s, skipping.\n %s' % (file, e)) debug_logger.debug("read_profile: can't read %s - skipping" % file) return None