Unwrap exception from optional before throwing

Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D815
This commit is contained in:
Mislav Bradac 2017-09-20 15:04:49 +02:00
parent ff37c04b38
commit 4e4fdd8029

View File

@ -71,6 +71,6 @@ communication::bolt::QueryData ExecuteNTimesTillSuccess(
}
}
LOG(WARNING) << query << " failed " << times << "times";
throw last_exception;
throw last_exception.value();
}
}