Add NETWORK_ERROR to switch statement
authorNeel Goyal <ngoyal@fb.com>
Tue, 10 May 2016 23:23:24 +0000 (16:23 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Tue, 10 May 2016 23:35:22 +0000 (16:35 -0700)
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

index 85054d867ef192c7bd07253b405786769e996fc6..fe087e8f7342ddf179b1a6a67156477b136b3b3a 100644 (file)
@@ -96,6 +96,8 @@ class AsyncSocketException : public std::runtime_error {
         return "Could not bind";
       case SASL_HANDSHAKE_TIMEOUT:
         return "SASL handshake timeout";
         return "Could not bind";
       case SASL_HANDSHAKE_TIMEOUT:
         return "SASL handshake timeout";
+      case NETWORK_ERROR:
+        return "Network error";
       default:
         return "(Invalid exception type)";
     }
       default:
         return "(Invalid exception type)";
     }