Skip to content

Commit

Permalink
jsonrpc: fix error message for mismatching types in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Apr 20, 2011
1 parent 625fa27 commit 33df73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/interfaces/json-rpc/JSONServiceDescription.cpp
Expand Up @@ -499,7 +499,7 @@ JSON_STATUS CJSONServiceDescription::checkType(const Json::Value &value, const J
if (status != OK)
{
CLog::Log(LOGWARNING, "JSONRPC: Array element at index %u does not match in type %s", arrayIndex, type.name.c_str());
errorMessage.Format("%s expected for array element at index %u but %s received", SchemaValueTypeToString(type.type), arrayIndex, ValueTypeToString(value.type()));
errorMessage.Format("array element at index %u does not match", arrayIndex);
errorData["message"] = errorMessage.c_str();
return status;
}
Expand Down

0 comments on commit 33df73a

Please sign in to comment.