Revision: 350
Author: allenb
Date: 2006-07-26 06:08:20 -0700 (Wed, 26 Jul 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=350&view=rev
Log Message:
-----------
- Make matcher exceptions more helpful by adding the str() of the contained matcher. This allows users to see what find failed in their code.
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/matcher.py
Modified: pygccxml_dev/pygccxml/declarations/matcher.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/matcher.py 2006-07-26 09:49:48 UTC (rev 349)
+++ pygccxml_dev/pygccxml/declarations/matcher.py 2006-07-26 13:08:20 UTC (rev 350)
@@ -14,7 +14,7 @@
self.matcher = matcher
def __str__( self ):
- return "Unable to find declaration."
+ return "Unable to find declaration. matcher: [%s]"%str(self.matcher)
class multiple_declarations_found_t( RuntimeError ):
def __init__( self, matcher ):
@@ -22,7 +22,7 @@
self.matcher = matcher
def __str__( self ):
- return "Multiple declarations has been found."
+ return "Multiple declarations has been found. matcher: [%s]"%str(self.matcher)
def find( decl_matcher, decls, recursive=True ):
where = []
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|