From e7ed3b2bc0a27bbc316ad56b7b4d88673cf7c7c6 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 24 Feb 2016 16:39:08 +0100 Subject: [PATCH] - yhook: change json output (text -> msg) --- src/nhttpd/yhttpd_core/yhook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index 2982e83a4..b34bce2f7 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -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())