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";