From f5398c77d500969600cd8840e5f378691f90689f Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 3 Oct 2022 14:02:28 +0200 Subject: [PATCH] Clarify invalid entity message --- src/ifcparse/IfcSchema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcSchema.h b/src/ifcparse/IfcSchema.h index cb5abca5ca..4ec3e93b7d 100644 --- a/src/ifcparse/IfcSchema.h +++ b/src/ifcparse/IfcSchema.h @@ -455,7 +455,7 @@ namespace IfcParse { } std::vector::const_iterator it = std::lower_bound(declarations_.begin(), declarations_.end(), *name_ptr, declaration_by_name_cmp()); if (it == declarations_.end() || (**it).name_uc() != *name_ptr) { - throw IfcParse::IfcException("Entity with '" + name + "' not found"); + throw IfcParse::IfcException("Entity with name '" + name + "' not found in schema '" + name_ + "'"); } else { return *it; }