Remove warnings (work package 1)
[anna.git] / include / anna / timex / Context.hpp
index d828fae..ab66859 100644 (file)
@@ -116,12 +116,12 @@ public:
     Transaction* result = (ii != a_transactions.end()) ? transaction(ii) : NULL;
 
     if(result == NULL) {
-      if(Exception::Mode::Throw) {
+      if(emode == Exception::Mode::Throw) {
         std::string msg("Transaction: ");
         msg += identifierAsString(tid);
         msg += " | Tid not found";
         throw RuntimeException(msg, ANNA_FILE_LOCATION);
-      } else if(Exception::Mode::Trace && Logger::isActive(Logger::Warning)) {
+      } else if(emode == Exception::Mode::Trace && Logger::isActive(Logger::Warning)) {
         std::string msg("Transaction: ");
         msg += identifierAsString(tid);
         msg += " | Tid not found";