check all errors.

This commit is contained in:
Mathieu Lacage
2008-03-11 11:35:03 -07:00
parent ef8ee7e7ef
commit 9cac5c71ee

View File

@@ -750,8 +750,12 @@ bool
AttributeList::SetFailSafe (std::string name, Attribute value)
{
struct TypeId::AttributeInfo info;
TypeId::LookupAttributeByFullName (name, &info);
bool ok = DoSet (&info, value);
bool ok = TypeId::LookupAttributeByFullName (name, &info);
if (!ok)
{
return false;
}
ok = DoSet (&info, value);
return ok;
}
void