Assertion throws err message on fail in buildLuaPackage