yhook: change json output (text -> msg)

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

Origin message was:
------------------
- yhook: change json output (text -> msg)

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-02-24 16:39:08 +01:00
parent a2629d2440
commit 497e31b83a

View File

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