From f368388ced7402d4102b8b07da4b14db3906951c Mon Sep 17 00:00:00 2001 From: cantor Date: Tue, 30 Sep 2008 20:45:32 +0000 Subject: [PATCH] Detect non-exception-based failure in loading extensions. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@2891 cb58f699-b61c-0410-a6fe-9272a202ed29 --- memcache-store/memcache-store.vcproj | 68 ++++++++++++++++++------------------ shibsp/impl/XMLServiceProvider.cpp | 3 +- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/memcache-store/memcache-store.vcproj b/memcache-store/memcache-store.vcproj index 854aad3..ae72ad3 100644 --- a/memcache-store/memcache-store.vcproj +++ b/memcache-store/memcache-store.vcproj @@ -43,7 +43,7 @@ getAttributeNS(NULL,_path)); try { if (path.get()) { - XMLToolingConfig::getConfig().load_library(path.get(),(void*)exts); + if (!XMLToolingConfig::getConfig().load_library(path.get(),(void*)exts)) + throw ConfigurationException("XMLToolingConfig::load_library failed."); log.debug("loaded %s extension library (%s)", label, path.get()); } } -- 2.1.4