summaryrefslogtreecommitdiff
path: root/lib/ReadJob.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-04 23:23:13 +0000
committerPixel <Pixel>2001-11-04 23:23:13 +0000
commit0f80b4e1f92f9b12115121e55619e6e810831d41 (patch)
tree1f44a9deb2f1e581507c31e4e26b37a7f646a1dd /lib/ReadJob.cc
parent50cef89f47dbc14b00639351463aba20ca4320a0 (diff)
Better exception handling.
Diffstat (limited to 'lib/ReadJob.cc')
-rw-r--r--lib/ReadJob.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ReadJob.cc b/lib/ReadJob.cc
index 8de0108..8a4740a 100644
--- a/lib/ReadJob.cc
+++ b/lib/ReadJob.cc
@@ -14,9 +14,10 @@ int ReadJob::Do() {
while (!s->IsClosed()) {
if (!current) {
try {
+ cerr << "Trying to read...\n";
*s >> buff;
}
- catch (IOAgain) {
+ catch (IOAgain e) {
return TASK_WAITING_HANDLE;
}
current = 0;
@@ -24,7 +25,7 @@ int ReadJob::Do() {
try {
*d << buff << endnl;
}
- catch (IOAgain) {
+ catch (IOAgain e) {
current = 1;
return TASK_WAITING_HANDLE;
}