Mercurial > hg > orthanc-object-storage
changeset 62:d10696f94959
more detailed AWS errors
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 06 Jul 2021 15:18:32 +0200 |
parents | b086aa28543e |
children | 5d2e9399bdd8 |
files | Aws/AwsS3StoragePlugin.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Aws/AwsS3StoragePlugin.cpp Sat Jun 26 22:20:34 2021 +0200 +++ b/Aws/AwsS3StoragePlugin.cpp Tue Jul 06 15:18:32 2021 +0200 @@ -92,7 +92,7 @@ if (!result.IsSuccess()) { - throw StoragePluginException(std::string("error while writing file ") + path_ + ": " + result.GetError().GetExceptionName().c_str() + " " + result.GetError().GetMessage().c_str()); + throw StoragePluginException(std::string("error while writing file ") + path_ + ": response code = " + boost::lexical_cast<std::string>((int)result.GetError().GetResponseCode()) + " " + result.GetError().GetExceptionName().c_str() + " " + result.GetError().GetMessage().c_str()); } } };