diff options
author | pixel <pixel> | 2004-12-23 02:30:34 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-12-23 02:30:34 +0000 |
commit | c76a2b8d804176a189c14bef8ad4fcae97b986c6 (patch) | |
tree | 149c6f53cb258c8dd137956033eb00be3ddb6f93 | |
parent | f338a30a497138841e462fa6a45e6a7f52d8b52f (diff) |
Huh ? Let's have a better error message please.
-rw-r--r-- | lib/Handle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index ef5aa80..b875f3e 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Handle.cc,v 1.73 2004-11-27 21:46:04 pixel Exp $ */ +/* $Id: Handle.cc,v 1.74 2004-12-23 02:30:34 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -421,7 +421,7 @@ ssize_t Handle::uread(void * buf, size_t count) { #endif int err = gzread(zfile, buf, count); if (err == -1) { - gzerror(zfile, &err); + throw GeneralException(String("Error reading zstream: ") + gzerror(zfile, &err)); if (err == Z_ERRNO) { return -1; } else { |