From bc9992bfc43a67f5405a9918116e17bfbea67b47 Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Tue, 10 May 2016 16:23:24 -0700 Subject: [PATCH] Add NETWORK_ERROR to switch statement Summary: Add NETWOR_ERROR to switch so it doesn't fall into Invalid Exception block. Differential Revision: D3282448 fbshipit-source-id: 2cc5d21e436e6ac8f2f6581d99341ac47cf5b023 --- folly/io/async/AsyncSocketException.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/folly/io/async/AsyncSocketException.h b/folly/io/async/AsyncSocketException.h index 85054d86..fe087e8f 100644 --- a/folly/io/async/AsyncSocketException.h +++ b/folly/io/async/AsyncSocketException.h @@ -96,6 +96,8 @@ class AsyncSocketException : public std::runtime_error { return "Could not bind"; case SASL_HANDSHAKE_TIMEOUT: return "SASL handshake timeout"; + case NETWORK_ERROR: + return "Network error"; default: return "(Invalid exception type)"; } -- 2.34.1