Skip to content

Instantly share code, notes, and snippets.

@codebutler
Created February 22, 2010 16:37
Show Gist options
  • Save codebutler/311239 to your computer and use it in GitHub Desktop.
Save codebutler/311239 to your computer and use it in GitHub Desktop.
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