diff --git a/src/plugin/ComponentManager.h b/src/plugin/ComponentManager.h index 016623069c..89b9efe976 100644 --- a/src/plugin/ComponentManager.h +++ b/src/plugin/ComponentManager.h @@ -267,7 +267,8 @@ const std::string& ComponentManager::GetComponentName(EnumValPtr val) const { if ( C* c = Lookup(val.get()) ) return c->CanonicalName(); - reporter->InternalWarning("requested name of unknown component tag %s", val->AsString()->CheckString()); + reporter->InternalWarning("requested name of unknown component tag %s", + val->GetType()->AsEnumType()->Lookup(val->Get())); return error; } @@ -295,7 +296,8 @@ StringValPtr ComponentManager::GetComponentNameVal(EnumValPtr val) const { if ( C* c = Lookup(val.get()) ) return c->CanonicalNameVal(); - reporter->InternalWarning("requested name of unknown component tag %s", val->AsString()->CheckString()); + reporter->InternalWarning("requested name of unknown component tag %s", + val->GetType()->AsEnumType()->Lookup(val->Get())); return error; }