Can you add an error when it hasn't been done before? `EE_UNDEFINED` shouldn't be used actually.
Just add them at the end of executionerrors.cpp, and name them like `EE_INTERNAL_PATCH_BADITEM`