yhook: change json output (text -> msg)

Origin commit data
------------------
Commit: e7ed3b2bc0
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-24 (Wed, 24 Feb 2016)

Origin message was:
------------------
- yhook: change json output (text -> msg)
This commit is contained in:
vanhofen
2016-02-24 16:39:08 +01:00
parent a5a9c64c2e
commit dabedd515d

View File

@@ -572,7 +572,7 @@ void CyhookHandler::SendError(std::string error) {
if (error.empty()) if (error.empty())
result = "{\"success\": \"false\"}"; result = "{\"success\": \"false\"}";
else else
result = "{\"success\": \"false\", \"error\":{\"text\": \"" + error + "\"}}"; result = "{\"success\": \"false\", \"error\":{\"msg\": \"" + error + "\"}}";
break; break;
default: default:
if (error.empty()) if (error.empty())