From c76a2b8d804176a189c14bef8ad4fcae97b986c6 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 23 Dec 2004 02:30:34 +0000 Subject: Huh ? Let's have a better error message please. --- lib/Handle.cc | 4 ++-- 1 file 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 #include @@ -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 { -- cgit v1.2.3