Skip to content

Commit

Permalink
node: [/] append get/put markers in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sim590 committed May 11, 2020
1 parent ea1277f commit 25ebf59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bool Node::paste(const std::string& code, dht::Blob&& blob, dht::DoneCallbackSim
bool done, success_ {false};
node_.put(hash, v, [&](bool success) {
if (not success)
std::cerr << OPERATION_FAILURE_MSG << std::endl;
std::cerr << OPERATION_FAILURE_MSG << " (put)" << std::endl;
else
success_ = true;
{
Expand All @@ -69,7 +69,7 @@ void Node::get(const std::string& code, PastedCallback&& pcb) {
},
[pcb,blobs](bool success) {
if (not success)
std::cerr << OPERATION_FAILURE_MSG << std::endl;
std::cerr << OPERATION_FAILURE_MSG << " (get)" << std::endl;
else if (pcb)
pcb(*blobs);
}, dht::Value::AllFilter(), dht::Where{}.userType(std::string(DPASTE_USER_TYPE))
Expand Down

0 comments on commit 25ebf59

Please sign in to comment.