瀏覽代碼

Bug fix: When S3 transfer fatally fails, error details were lost

Source commit: 3fe83651e9b601155e022bb00c02cf2198922ec9
Martin Prikryl 3 年之前
父節點
當前提交
6357b13b42
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/core/S3FileSystem.cpp

+ 2 - 1
source/core/S3FileSystem.cpp

@@ -522,7 +522,8 @@ void TS3FileSystem::CheckLibS3Error(const TLibS3CallbackData & Data, bool FatalO
 
     if (FatalCandidate && FatalOnConnectError)
     {
-      throw EFatal(NULL, Error, Details);
+      std::unique_ptr<Exception> E(new Exception(Error));
+      throw EFatal(E.get(), Details);
     }
     else
     {