summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2020-08-25 17:47:29 +0300
committerEd Tanous <ed@tanous.net>2020-08-26 00:37:34 +0300
commit3bcc01520b0f01174dc7933fde9bcbc0efef6721 (patch)
treee1acbdab6e8684881a65c56eb557fca707f63f01
parentd139c2364bec98a5da1fe803414f3b02fdcd3092 (diff)
downloadbmcweb-3bcc01520b0f01174dc7933fde9bcbc0efef6721.tar.xz
Fix build error in debug
std::exception doesn't have a direct conversion to iostream. This only shows up when building for debug. Tested: Forced -DCMAKE_BUILD_TYPE=Debug, and verified code builds. Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I6fdd0e561f1cecc5f40f0e8b9c624f746ce6456f
-rw-r--r--http/http_connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_connection.h b/http/http_connection.h
index 679140c7cb..109a272253 100644
--- a/http/http_connection.h
+++ b/http/http_connection.h
@@ -549,7 +549,7 @@ class Connection :
}
catch (std::exception& p)
{
- BMCWEB_LOG_ERROR << p;
+ BMCWEB_LOG_ERROR << p.what();
}
crow::authorization::authenticate(*req, res, session);