Display error message instead of mysterious crash when encountering unknown BamObjectCode

This commit is contained in:
rdb 2015-05-18 02:04:22 +02:00
parent 586c067d69
commit f152c238d5

View File

@ -1214,6 +1214,11 @@ p_read_object() {
}
return p_read_object();
default:
bam_cat.error()
<< "Encountered invalid BamObjectCode 0x" << hex << (int)boc << dec << ".\n";
return 0;
}
// An object definition in a Bam file consists of a TypeHandle