Move errant logging statement
Log statement was after the return, so therefore didn't do anything.
cppcheck found.
Tested: No way to test without a bug that causes an uncaught exception.
Code review only.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I5a4ae7d5ac83065040e3c4d9e390b5883fd0f1f9
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index c306dea..b68e167 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -160,7 +160,7 @@
}
catch (...)
{
- return -1;
BMCWEB_LOG_CRITICAL << "Threw exception to main";
+ return -1;
}
}