mirror of https://github.com/SChernykh/p2pool
Fixed `submit_block` error logging
parent
d151ed9354
commit
a1ec97a221
|
@ -575,8 +575,8 @@ void p2pool::submit_block() const
|
||||||
|
|
||||||
const char* error_msg = nullptr;
|
const char* error_msg = nullptr;
|
||||||
|
|
||||||
auto it = doc.FindMember("message");
|
auto it = err.FindMember("message");
|
||||||
if (it != doc.MemberEnd() && it->value.IsString()) {
|
if (it != err.MemberEnd() && it->value.IsString()) {
|
||||||
error_msg = it->value.GetString();
|
error_msg = it->value.GetString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue