From 4e4fdd80290780979207f5faa170d768d2ff19c8 Mon Sep 17 00:00:00 2001 From: Mislav Bradac Date: Wed, 20 Sep 2017 15:04:49 +0200 Subject: [PATCH] Unwrap exception from optional before throwing Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D815 --- tests/macro_benchmark/clients/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/macro_benchmark/clients/common.hpp b/tests/macro_benchmark/clients/common.hpp index 4b81e200a..0729fdf59 100644 --- a/tests/macro_benchmark/clients/common.hpp +++ b/tests/macro_benchmark/clients/common.hpp @@ -71,6 +71,6 @@ communication::bolt::QueryData ExecuteNTimesTillSuccess( } } LOG(WARNING) << query << " failed " << times << "times"; - throw last_exception; + throw last_exception.value(); } }