Mercurial > hg > piper-cpp
comparison json/VampJson.h @ 74:d45cfa25aaad
Ensure code is at least set, but just to 0 at the mo
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 10 Oct 2016 15:31:44 +0100 |
parents | 7bfc07576830 |
children |
comparison
equal
deleted
inserted
replaced
73:7bfc07576830 | 74:d45cfa25aaad |
---|---|
1231 else if (responseType == RRType::Process) type = "process"; | 1231 else if (responseType == RRType::Process) type = "process"; |
1232 else if (responseType == RRType::Finish) type = "finish"; | 1232 else if (responseType == RRType::Finish) type = "finish"; |
1233 else type = "invalid"; | 1233 else type = "invalid"; |
1234 | 1234 |
1235 json11::Json::object eo; | 1235 json11::Json::object eo; |
1236 //!!! + need code | 1236 eo["code"] = 0; |
1237 eo["message"] = | 1237 eo["message"] = |
1238 std::string("error in ") + type + " request: " + errorText; | 1238 std::string("error in ") + type + " request: " + errorText; |
1239 | 1239 |
1240 jo["method"] = type; | 1240 jo["method"] = type; |
1241 jo["error"] = eo; | 1241 jo["error"] = eo; |