summaryrefslogtreecommitdiff
path: root/project2/common/cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/cache.cpp')
-rw-r--r--project2/common/cache.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/project2/common/cache.cpp b/project2/common/cache.cpp
index f5edc43..ff9f41f 100644
--- a/project2/common/cache.cpp
+++ b/project2/common/cache.cpp
@@ -4,6 +4,7 @@
#include "rowProcessor.h"
#include "logger.h"
#include <boost/foreach.hpp>
+#include <glibmm/exception.h>
Cache::Cache(ScriptNodePtr p) :
IHaveParameters(p),
@@ -21,8 +22,14 @@ bool Cache::checkAndExecute(const Glib::ustring & n, const Glib::ustring & f, co
cached->execute(f, rp);
return true;
}
+ catch (const Glib::Exception & e) {
+ Logger()->messagef(LOG_WARNING, "Cache failed (%s)", e.what().c_str());
+ }
+ catch (const std::exception & e) {
+ Logger()->messagef(LOG_WARNING, "Cache failed (%s)", e.what());
+ }
catch (...) {
- Logger()->messagef(LOG_WARNING, "Cache failed");
+ Logger()->message(LOG_WARNING, "Cache failed");
}
}
return false;