From: Dave Watson Date: Thu, 13 Nov 2014 20:31:47 +0000 (-0800) Subject: Fix format bug X-Git-Tag: v0.22.0~174 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=146fda299bd4885b753732216c4370199db83c5d;p=folly.git 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 --- diff --git a/folly/io/async/AsyncServerSocket.cpp b/folly/io/async/AsyncServerSocket.cpp index 7dce10c1..4f2e39bb 100644 --- a/folly/io/async/AsyncServerSocket.cpp +++ b/folly/io/async/AsyncServerSocket.cpp @@ -764,7 +764,8 @@ void AsyncServerSocket::dispatchError(const char *msgstr, int errnoValue) { while (true) { // Short circuit if the callback is in the primary EventBase thread if (info->eventBase == nullptr) { - std::runtime_error ex(msgstr + errnoValue); + std::runtime_error ex( + std::string(msgstr) + folly::to(errnoValue)); info->callback->acceptError(ex); return; }