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 | 15d4e36fba7ef65e25e51ba9b5702b0e2e727b64 (patch) | |
| tree | e3db977d1d929bb67e242db51e1fb0b4b9211658 | |
| parent | a00e575e242f6c5c9673948efc905226f5a0bfd2 (diff) | |
| download | qpid-python-15d4e36fba7ef65e25e51ba9b5702b0e2e727b64.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@720177 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/src/qpid/Modules.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/Modules.cpp b/qpid/cpp/src/qpid/Modules.cpp index 9ad328e07d..1b802f0019 100644 --- a/qpid/cpp/src/qpid/Modules.cpp +++ b/qpid/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) |
