mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
Make i2pcontrol error codes negative.
This commit is contained in:
parent
833a606b13
commit
c10d0fdb7e
@ -39,7 +39,7 @@ std::string I2PControlSession::Response::toJsonString() const
|
||||
}
|
||||
oss << "},\"jsonrpc\":\"" << version << '"';
|
||||
if(error != ErrorCode::None)
|
||||
oss << ",\"error\":{\"code\":" << static_cast<int>(error)
|
||||
oss << ",\"error\":{\"code\":" << -static_cast<int>(error)
|
||||
<< ",\"message\":\"" << getErrorMsg() << "\"" << "}";
|
||||
oss << "}";
|
||||
return oss.str();
|
||||
|
Loading…
Reference in New Issue
Block a user