You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res.Add(newError("Message does not conform to schema: "+string.Join(", ",errors.Select(aErr =>aErr.ToString()).ToArray()),ErrorClass.ERROR_MSG,ButtplugConsts.SystemMsgId));
94
+
res.Add(_bpLogger.LogErrorMsg(ButtplugConsts.SystemMsgId,ErrorClass.ERROR_MSG,"Message does not conform to schema: "+string.Join(", ",errors.Select(aErr =>aErr.ToString()).ToArray())));
97
95
returnres.ToArray();
98
96
}
99
97
100
-
if(!a.Any())
98
+
if(!msgArray.Any())
101
99
{
102
-
res.Add(newError("No messages in array",ErrorClass.ERROR_MSG,ButtplugConsts.SystemMsgId));
100
+
res.Add(_bpLogger.LogErrorMsg(ButtplugConsts.SystemMsgId,ErrorClass.ERROR_MSG,"No messages in array"));
103
101
returnres.ToArray();
104
102
}
105
103
106
104
// JSON input is an array of messages.
107
105
// We currently only handle the first one.
108
-
foreach(varoina.Children<JObject>())
106
+
foreach(varoinmsgArray.Children<JObject>())
109
107
{
110
108
if(!o.Properties().Any())
111
109
{
112
-
res.Add(newError("No message name available",ErrorClass.ERROR_MSG,ButtplugConsts.SystemMsgId));
110
+
res.Add(_bpLogger.LogErrorMsg(ButtplugConsts.SystemMsgId,ErrorClass.ERROR_MSG,"No message name available"));
0 commit comments