Explorar el Código

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

Source commit: 3fe83651e9b601155e022bb00c02cf2198922ec9
Martin Prikryl hace 3 años
padre
commit
6357b13b42
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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
     {