From 8bcbfa6a5790f7717407befce6572a7eae2656f9 Mon Sep 17 00:00:00 2001 From: Ken Patel Date: Tue, 17 Nov 2009 23:23:50 +0000 Subject: [PATCH] Bam with objects of unknown type error now prints filename of bam --- panda/src/putil/bamReader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/putil/bamReader.cxx b/panda/src/putil/bamReader.cxx index 8a7d4b24f0..13c18e998e 100644 --- a/panda/src/putil/bamReader.cxx +++ b/panda/src/putil/bamReader.cxx @@ -579,7 +579,8 @@ read_handle(DatagramIterator &scan) { type = TypeRegistry::ptr()->register_dynamic_type(name); 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_types.insert(type); }