浏览代码

For the error be like Setup.FileExtractor / SourceIsCorrupted: show the generic msgSourceIsCorrupted message and only log the detail. So a failed verification on an external file now shows the same abort/retry/ignore error as failed decompression on an internal file:

"<filename>

An error occurred while trying to copy a file:
The source file is corrupted."
Martijn Laan 4 月之前
父节点
当前提交
2b7de357e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Projects/Src/Setup.Install.pas

+ 1 - 1
Projects/Src/Setup.Install.pas

@@ -253,7 +253,7 @@ end;
 procedure ISSigVerifyError(const AReason: String);
 begin
   Log('ISSig verification error: ' + AddPeriod(AReason));
-  raise Exception.Create(AReason);
+  raise Exception.Create(SetupMessages[msgSourceIsCorrupted]);
 end;
 
 procedure CopySourceFileToDestFile(const SourceF, DestF: TFile;