Skip to content

Commit

Permalink
Prevent misleading error message of extra code templates
Browse files Browse the repository at this point in the history
Due to version constraints the object definition might not be available,
revert to the previous state and ignore this silently until a better
solution is found.
  • Loading branch information
sodevel committed Feb 10, 2025
1 parent 4ad99be commit 57ca715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,9 @@ void ObjectDatabase::LoadCodeGen(const wxString& file)
if (auto objectInfo = GetObjectInfo(className); objectInfo) {
objectInfo->AddCodeInfo(language, codeInfo);
} else {
wxLogError(_("%s: Code template for unknown class \"%s\""), file, className);
// TODO: The object info might not be available due to unsatisfied version constraints,
// revert to the previous state and ignore this case silently
//wxLogError(_("%s: Code template for unknown class \"%s\""), file, className);
}
}
}
Expand Down

0 comments on commit 57ca715

Please sign in to comment.