mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
flip error check, exchange if(state == "error") with if(state != "success")
This commit is contained in:
parent
70a1121194
commit
b761e9bb8d
@ -243,8 +243,8 @@ int SigningTransaction::run() {
|
||||
Poco::JSON::Object object = *parsedJson.extract<Poco::JSON::Object::Ptr>();
|
||||
auto state = object.get("state");
|
||||
std::string stateString = state.convert<std::string>();
|
||||
if (stateString == "error") {
|
||||
addError(new Error("SigningTransaction", "php server return error"));
|
||||
if (stateString != "success") {
|
||||
addError(new Error("SigningTransaction", "php server don't return success"));
|
||||
if (!object.isNull("msg")) {
|
||||
addError(new ParamError("SigningTransaction", "msg:", object.get("msg").convert<std::string>().data()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user