MCPcopy Create free account
hub / github.com/arvidn/libtorrent / print_error

Function print_error

src/error_code.cpp:362–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361
362 std::string print_error(error_code const& ec)
363 {
364 if (!ec) return {};
365 std::stringstream ret;
366 ret << "ERROR: (" << ec.category().name() << ":" << ec.value() << ") "
367 << ec.message();
368 return ret.str();
369 }
370
371}

Callers 8

on_extended_handshakeMethod · 0.70
incoming_connectionMethod · 0.70
startMethod · 0.70
connect_failedMethod · 0.70
disconnectMethod · 0.70
on_receive_dataMethod · 0.70
on_send_dataMethod · 0.70

Calls 4

categoryMethod · 0.80
valueMethod · 0.80
nameMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected