Commit 146fda29 authored by Dave Watson's avatar Dave Watson

Fix format bug

Summary: Fix addition bug instead of string concat

Test Plan: ?? It compiles?  The only call paths are when syscalls fail, it would be a lot of work to stub them out

Reviewed By: mshneer@fb.com

Subscribers: trunkagent, doug, njormrod, folly-diffs@

FB internal diff: D1679713

Tasks: 5604354

Signature: t1:1679713:1415925209:ed05d3d1ce3e7e8db32c4afc86c5f24748d9c65b
parent dd280141
...@@ -764,7 +764,8 @@ void AsyncServerSocket::dispatchError(const char *msgstr, int errnoValue) { ...@@ -764,7 +764,8 @@ void AsyncServerSocket::dispatchError(const char *msgstr, int errnoValue) {
while (true) { while (true) {
// Short circuit if the callback is in the primary EventBase thread // Short circuit if the callback is in the primary EventBase thread
if (info->eventBase == nullptr) { if (info->eventBase == nullptr) {
std::runtime_error ex(msgstr + errnoValue); std::runtime_error ex(
std::string(msgstr) + folly::to<std::string>(errnoValue));
info->callback->acceptError(ex); info->callback->acceptError(ex);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment