mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- yhook: change json output (text -> msg)
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user