diff options
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -392,7 +392,9 @@ public: | |||
| 392 | const char* GetCommand() const | 392 | const char* GetCommand() const |
| 393 | { | 393 | { |
| 394 | if (!IsKnownType()) | 394 | if (!IsKnownType()) |
| 395 | throw std::out_of_range(strprintf("CInv::GetCommand() : type=% unknown type", type)); | 395 | // Was "type=% unknown type": the % swallowed the space as a flag and |
| 396 | // the u as the conversion, so this read "type= 3nknown type". | ||
| 397 | throw std::out_of_range(strprintf("CInv::GetCommand() : type=%d unknown type", type)); | ||
| 396 | return ppszTypeName[type]; | 398 | return ppszTypeName[type]; |
| 397 | } | 399 | } |
| 398 | 400 | ||