diff options
author | Josh Blum | 2013-05-05 13:33:28 -0700 |
---|---|---|
committer | Josh Blum | 2013-05-05 13:33:28 -0700 |
commit | bbcd633b161e9475d53e3cadc1a78433d955c48b (patch) | |
tree | 9d80e4a192c97e3c0cf6b6862a7ea49f5dd93a2b /lib | |
parent | 3e1d523d5c218f1fead19407a8e902329d4120b4 (diff) | |
download | sandhi-bbcd633b161e9475d53e3cadc1a78433d955c48b.tar.gz sandhi-bbcd633b161e9475d53e3cadc1a78433d955c48b.tar.bz2 sandhi-bbcd633b161e9475d53e3cadc1a78433d955c48b.zip |
gras: name of block in error messages helps
Diffstat (limited to 'lib')
-rw-r--r-- | lib/task_fail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |