Browse Source

Bam with objects of unknown type error now prints filename of bam

Ken Patel 16 years ago
parent
commit
8bcbfa6a57
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/putil/bamReader.cxx

+ 2 - 1
panda/src/putil/bamReader.cxx

@@ -579,7 +579,8 @@ read_handle(DatagramIterator &scan) {
 
 
     type = TypeRegistry::ptr()->register_dynamic_type(name);
     type = TypeRegistry::ptr()->register_dynamic_type(name);
     bam_cat.warning()
     bam_cat.warning()
-      << "Bam file contains objects of unknown type: " << type << "\n";
+      << "Bam file '" << _filename << "' contains objects of unknown type: " 
+      << type << "\n";
     new_type = true;
     new_type = true;
     _new_types.insert(type);
     _new_types.insert(type);
   }
   }