| 875 | | { |
| 876 | | torrent::Object obj; |
| 877 | | if (object_read_bencode_c(output.buffer.first, output.pos, &obj) != output.pos) { |
| 878 | | std::string escaped = rak::copy_escape_html(output.buffer.first, output.pos); |
| 879 | | |
| 880 | | //char buffer[1024]; |
| 881 | | // sprintf(buffer, "Verified wrong, %u, '%u', '%s'.", std::distanescaped.c_str()); |
| 882 | | |
| 883 | | throw torrent::internal_error("Invalid bencode data generated: '" + escaped + "'"); |
| 884 | | } |
| 885 | | } |
| | 875 | // { |
| | 876 | // torrent::Object obj; |
| | 877 | // if (object_read_bencode_c(output.buffer.first, output.pos, &obj) != output.pos) { |
| | 878 | // std::string escaped = rak::copy_escape_html(output.buffer.first, output.pos); |
| | 879 | |
| | 880 | // //char buffer[1024]; |
| | 881 | // // sprintf(buffer, "Verified wrong, %u, '%u', '%s'.", std::distanescaped.c_str()); |
| | 882 | |
| | 883 | // throw torrent::internal_error("Invalid bencode data generated: '" + escaped + "'"); |
| | 884 | // } |
| | 885 | // } |