[Libreoffice-commits] online.git: wsd/Storage.cpp
Pranav Kant
pranavk at collabora.co.uk
Fri May 19 15:37:43 UTC 2017
wsd/Storage.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit aed840ea04ce2e7ae120698f50e78268b542db12
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri May 19 21:04:03 2017 +0530
Didn't mean to truncate this string literal
Otherwise getStatus() returns an integer which increments the char*
Change-Id: I189addb60a02de14085b1501c75362b13dcb3ae2
diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp
index e259836b..6e8c1dff 100644
--- a/wsd/Storage.cpp
+++ b/wsd/Storage.cpp
@@ -464,7 +464,7 @@ std::unique_ptr<WopiStorage::WOPIFileInfo> WopiStorage::getWOPIFileInfo(const st
if (response.getStatus() != Poco::Net::HTTPResponse::HTTP_OK)
{
- LOG_ERR("WOPI::CheckFileInfo failed with " + response.getStatus() + response.getReason());
+ LOG_ERR("WOPI::CheckFileInfo failed with " << response.getStatus() << ' ' << response.getReason());
throw StorageConnectionException("WOPI::CheckFileInfo failed");
}
@@ -590,7 +590,7 @@ std::string WopiStorage::loadStorageFileToLocal(const std::string& accessToken)
if (response.getStatus() != Poco::Net::HTTPResponse::HTTP_OK)
{
- LOG_ERR("WOPI::GetFile failed with " + response.getStatus() + response.getReason());
+ LOG_ERR("WOPI::GetFile failed with " << response.getStatus() << ' ' << response.getReason());
throw StorageConnectionException("WOPI::GetFile failed");
}
else // Successful
More information about the Libreoffice-commits
mailing list