fix typo in invalid log level error message
authorChad Austin <chadaustin@fb.com>
Mon, 16 Oct 2017 23:22:25 +0000 (16:22 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 16 Oct 2017 23:35:58 +0000 (16:35 -0700)
Reviewed By: simpkins

Differential Revision: D6068742

fbshipit-source-id: a3b3b7fe4a6da8f250e5b9593f66b9f8a9345136

folly/experimental/logging/LogLevel.cpp

index c70ad6ba51aa09c23fe794adde9159e99f3a4441..1a4d15e1eaca4805c08919f19fa6bb4885f1ebde 100644 (file)
@@ -81,7 +81,7 @@ LogLevel stringToLogLevel(StringPiece name) {
     auto level = folly::to<uint32_t>(lowerName);
     return static_cast<LogLevel>(level);
   } catch (const std::exception&) {
-    throw std::range_error("invalid logger name " + name.str());
+    throw std::range_error("invalid logger level: " + name.str());
   }
 }