Fixed `submit_block` error logging

pull/226/head
SChernykh 2022-12-25 16:23:57 +01:00
parent d151ed9354
commit a1ec97a221
1 changed files with 2 additions and 2 deletions

View File

@ -575,8 +575,8 @@ void p2pool::submit_block() const
const char* error_msg = nullptr;
auto it = doc.FindMember("message");
if (it != doc.MemberEnd() && it->value.IsString()) {
auto it = err.FindMember("message");
if (it != err.MemberEnd() && it->value.IsString()) {
error_msg = it->value.GetString();
}