Skip to content

Commit 6f75389

Browse files
committed
let sdz creation fail without failing download
1 parent 60f6d00 commit 6f75389

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Shared/PlasmaDownloader/Packages/PackageDownload.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,16 @@ void MasterDownloadThread()
211211

212212
if (rapidHandling != RapidHandling.DefaultSdp)
213213
{
214-
var convertor = new Sdp2Sdz();
215-
convertor.ConvertSdp2Sdz(paths, packageHash, targetSdz, (p)=> { zipProgress = p; });
216-
217-
if (rapidHandling == RapidHandling.SdzNameHash) RemoveOtherSdzVersions(entry);
214+
try
215+
{
216+
var convertor = new Sdp2Sdz();
217+
convertor.ConvertSdp2Sdz(paths, packageHash, targetSdz, (p) => { zipProgress = p; });
218+
219+
if (rapidHandling == RapidHandling.SdzNameHash) RemoveOtherSdzVersions(entry);
220+
}catch(Exception ex)
221+
{
222+
Trace.TraceError("Error converting {0} to sdz {1}", Name, ex);
223+
}
218224
}
219225

220226

0 commit comments

Comments
 (0)