Skip to content

Commit

Permalink
Added an error code to some error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SChernykh committed Oct 14, 2024
1 parent 1053e22 commit 510a271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/p2p_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ void P2PServer::save_peer_list()
std::ofstream f(saved_peer_list_file_name, std::ios::binary);

if (!f.is_open()) {
LOGERR(1, "failed to save peer list");
LOGERR(1, "failed to save peer list " << saved_peer_list_file_name << ", error " << errno);
return;
}

Expand Down
3 changes: 3 additions & 0 deletions src/p2pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,9 @@ void p2pool::api_update_block_found(const ChainMain* data, const PoolBlock* bloc
f.flush();
f.close();
}
else {
LOGERR(1, "Failed to update " << FOUND_BLOCKS_FILE << ", error " << errno);
}
}

std::vector<FoundBlock> found_blocks;
Expand Down

0 comments on commit 510a271

Please sign in to comment.