[Debtags-commits] [svn] r881 - in libdebtags1/trunk: . debtags

Enrico Zini debtags-commits@lists.alioth.debian.org
Wed, 15 Jun 2005 19:12:02 +0000


Author: enrico
Date: Wed Jun 15 19:12:00 2005
New Revision: 881

Modified:
   libdebtags1/trunk/   (props changed)
   libdebtags1/trunk/debtags/Vocabulary.cc
Log:
 r3554@viaza:  enrico | 2005-06-15 21:11:48 +0200
 Rethrow exceptions with their proper type


Modified: libdebtags1/trunk/debtags/Vocabulary.cc
==============================================================================
--- libdebtags1/trunk/debtags/Vocabulary.cc	(original)
+++ libdebtags1/trunk/debtags/Vocabulary.cc	Wed Jun 15 19:12:00 2005
@@ -92,7 +92,7 @@
 	// Open the index
 	try {
 		db.open(0, O_RDONLY);
-	} catch (Exception& e) {
+	} catch (SystemException& e) {
 		munmap(vocdata, vocdata_len);
 		close(fd);
 		throw;