importer: fix error message
authorNathan Binkert <nate@binkert.org>
Tue, 21 Dec 2010 16:02:40 +0000 (08:02 -0800)
committerNathan Binkert <nate@binkert.org>
Tue, 21 Dec 2010 16:02:40 +0000 (08:02 -0800)
src/python/importer.py

index 4e364873f15d9da796458746b62bcd0742a73048..90fbae8b4bada546454b4c904531146596d7bfee 100644 (file)
@@ -35,7 +35,7 @@ class CodeImporter(object):
 
     def add_module(self, filename, abspath, modpath, code):
         if modpath in self.modules:
-            raise AttributeError, "%s already found in importer"
+            raise AttributeError, "%s already found in importer" % modpath
 
         self.modules[modpath] = (filename, abspath, code)