From bbcd633b161e9475d53e3cadc1a78433d955c48b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 5 May 2013 13:33:28 -0700 Subject: gras: name of block in error messages helps --- lib/task_fail.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/task_fail.cpp b/lib/task_fail.cpp index c30b668..720e2e1 100644 --- a/lib/task_fail.cpp +++ b/lib/task_fail.cpp @@ -35,7 +35,7 @@ void BlockActor::input_fail(const size_t i) //check that the input is not already maxed if (this->input_queues.is_front_maximal(i)) { - throw std::runtime_error("input_fail called on maximum_items buffer"); + throw std::runtime_error("input_fail called on maximum_items buffer in " + name); } //mark fail: not ready until a new buffer appears @@ -50,7 +50,7 @@ void BlockActor::output_fail(const size_t i) const size_t front_items = buff.length/this->output_configs[i].item_size; if (front_items >= this->output_configs[i].maximum_items) { - throw std::runtime_error("output_fail called on maximum_items buffer"); + throw std::runtime_error("output_fail called on maximum_items buffer in " + name); } //mark fail: not ready until a new buffer appears -- cgit