Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,13 @@ void ThingTemplate::parseModuleName(INI* ini, void *instance, void* store, const

ModuleData* data = TheModuleFactory->newModuleDataFromINI(ini, tokenStr, type, moduleTagStr);

if (data == NULL)
{
DEBUG_CRASH(("[LINE: %d - FILE: '%s'] Module '%s' not found or failed to create for thing template '%s'. This module is not registered in the ModuleFactory. Please check that the module name is spelled correctly and that the module type is appropriate.",
ini->getLineNum(), ini->getFilename().str(), tokenStr.str(), self->getName().str()));
throw INI_INVALID_DATA;
}

if (data->isAiModuleData())
{
Bool replaced = mi->clearAiModuleInfo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,13 @@ void ThingTemplate::parseModuleName(INI* ini, void *instance, void* store, const

ModuleData* data = TheModuleFactory->newModuleDataFromINI(ini, tokenStr, type, moduleTagStr);

if (data == NULL)
{
DEBUG_CRASH(("[LINE: %d - FILE: '%s'] Module '%s' not found or failed to create for thing template '%s'. This module is not registered in the ModuleFactory. Please check that the module name is spelled correctly and that the module type is appropriate.",
ini->getLineNum(), ini->getFilename().str(), tokenStr.str(), self->getName().str()));
throw INI_INVALID_DATA;
}

if (data->isAiModuleData())
{
Bool replaced = mi->clearAiModuleInfo();
Expand Down
Loading