diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-24 12:40:32 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-24 12:40:32 +0000 |
commit | 46ac0ba48ccc76bff9fc5e386a2567a96415d996 (patch) | |
tree | 069fe650cb90ae4f60057f223ec22d7c81f89a19 | |
parent | 7bc808c71f28e7a58aeedbd6dcc450f1265d660c (diff) | |
download | qpid-python-46ac0ba48ccc76bff9fc5e386a2567a96415d996.tar.gz |
Clearer error message for case when specified module-dir is not a directory.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720177 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/qpid/Modules.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/Modules.cpp b/cpp/src/qpid/Modules.cpp index 9ad328e07d..1b802f0019 100644 --- a/cpp/src/qpid/Modules.cpp +++ b/cpp/src/qpid/Modules.cpp @@ -61,6 +61,10 @@ void loadModuleDir (std::string dirname, bool isDefault) return; throw Exception ("Directory not found: " + dirname); } + if (!fs::is_directory(dirPath)) + { + throw Exception ("Invalid value for module-dir: " + dirname + " is not a directory"); + } fs::directory_iterator endItr; for (fs::directory_iterator itr (dirPath); itr != endItr; ++itr) |