Skip to content

Commit 31667bb

Browse files
committed
Use proper exception reporting as opposed to the placeholder.
1 parent 7441041 commit 31667bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/hc/hc.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,9 @@ namespace hc
12081208
std::pair<std::mutex, completion_future>& accelerator_view::
12091209
pending_tasks_for_default_av_() const
12101210
{
1211-
if (!accelerator_) throw "WTF?!?!?!?!";
1211+
if (!accelerator_) {
1212+
throw std::logic_error{"Invariants of class accelerator broken."};
1213+
}
12121214

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

0 commit comments

Comments
 (0)