Skip to content

Commit

Permalink
Use proper exception reporting as opposed to the placeholder.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVlx committed Oct 10, 2018
1 parent 7441041 commit 31667bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/hc/hc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,9 @@ namespace hc
std::pair<std::mutex, completion_future>& accelerator_view::
pending_tasks_for_default_av_() const
{
if (!accelerator_) throw "WTF?!?!?!?!";
if (!accelerator_) {
throw std::logic_error{"Invariants of class accelerator broken."};
}

using ConcurrentFuture_ = std::pair<std::mutex, completion_future>;

Expand Down

0 comments on commit 31667bb

Please sign in to comment.