From 146fda299bd4885b753732216c4370199db83c5d Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Thu, 13 Nov 2014 12:31:47 -0800 Subject: [PATCH] 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 --- folly/io/async/AsyncServerSocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.34.1