Created
February 22, 2010 16:37
-
-
Save codebutler/311239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Foundation/ModuleManager.cpp | |
=================================================================== | |
--- Foundation/ModuleManager.cpp (revision 2543) | |
+++ Foundation/ModuleManager.cpp (working copy) | |
@@ -111,7 +111,12 @@ | |
try | |
{ | |
LoadModule(path, files); | |
- } catch (std::exception &e) // may not be fatal, depending on which module failed | |
+ | |
+ // may not be fatal, depending on which module failed | |
+ } catch (Poco::Exception &e) { | |
+ Foundation::RootLogError(std::string("Exception: ") + e.displayText()); | |
+ Foundation::RootLogError("Failed to load module."); | |
+ } catch (std::exception &e) | |
{ | |
Foundation::RootLogError(std::string("Exception: ") + e.what()); | |
Foundation::RootLogError("Failed to load module."); | |
@@ -508,7 +513,7 @@ | |
void ModuleManager::AddDependenciesToPath(const StringVector &all_additions) | |
{ | |
- std::string path = Poco::Environment::get("path"); | |
+ std::string path = Poco::Environment::get("path", ""); | |
std::string cwd = Poco::Path::current(); | |
char separator = Poco::Path::pathSeparator(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment