Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2023-11-08 10:57:38 -05:00
commit dae07c1900
2 changed files with 3 additions and 4 deletions

View file

@ -3083,7 +3083,7 @@ Datatype *TypeFactory::findAdd(Datatype &ct)
if (ct.name.size()!=0) { // If there is a name
if (ct.id == 0) // There must be an id
throw LowlevelError("Datatype must have a valid id");
throw LowlevelError("Datatype must have a valid id: "+ct.name);
res = findByIdLocal(ct.name,ct.id); // Lookup type by it
if (res != (Datatype *)0) { // If a type has this name
if (0!=res->compareDependency( ct )) // Check if it is the same type