From dabedd515dcf91a1ab9474a7dff560a0fea22ab4 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 24 Feb 2016 16:39:08 +0100 Subject: [PATCH] yhook: change json output (text -> msg) Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e7ed3b2bc0a27bbc316ad56b7b4d88673cf7c7c6 Author: vanhofen Date: 2016-02-24 (Wed, 24 Feb 2016) Origin message was: ------------------ - 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())