SVN: ZODB/trunk/src/ZODB/FileStorage/FileStorage.py Pass formatted string to exception for more informative tracebacks.

Patrick Strawderman <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20091029210656.6891194181__38803.3585310497$1256850427$gmane$org@cvs.zope.org>
Log message for revision 105376:
  Pass formatted string to exception for more informative tracebacks.

Changed:
  U   ZODB/trunk/src/ZODB/FileStorage/FileStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/FileStorage/FileStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/FileStorage/FileStorage.py	2009-10-29 20:46:20 UTC (rev 105375)
+++ ZODB/trunk/src/ZODB/FileStorage/FileStorage.py	2009-10-29 21:06:56 UTC (rev 105376)
@@ -51,7 +51,7 @@
 
 def panic(message, *data):
     logger.critical(message, *data)
-    raise CorruptedTransactionError(message)
+    raise CorruptedTransactionError(message % data)
 
 class FileStorageError(POSException.StorageError):
     pass
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.