From bb40c14cc7354d05a85fce2a2b2fb943fc4b9daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 29 Oct 2012 15:01:13 +0100 Subject: [PATCH] loader: printed searched directories if profile is not found --- tuned/profiles/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/profiles/loader.py b/tuned/profiles/loader.py index 3a92462..6ee8fc1 100644 --- a/tuned/profiles/loader.py +++ b/tuned/profiles/loader.py @@ -50,7 +50,7 @@ class Loader(object): for name in profile_names: filename = self._find_config_file(name, processed_files) if filename is None: - raise InvalidProfileException("Cannot find profile '%s'." % name) + raise InvalidProfileException("Cannot find profile '%s' in '%s'." % (name, list(reversed(self._load_directories)))) processed_files.append(filename) config = self._load_config_data(filename)