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())