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:
parent
ff37c04b38
commit
4e4fdd8029
@ -71,6 +71,6 @@ communication::bolt::QueryData ExecuteNTimesTillSuccess(
|
||||
}
|
||||
}
|
||||
LOG(WARNING) << query << " failed " << times << "times";
|
||||
throw last_exception;
|
||||
throw last_exception.value();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user