mirror of
https://github.com/mudler/LocalAI.git
synced 2026-05-23 08:10:48 -04:00
[utils] Fail immediately on extraction errors (#9926)
utils: fail immediately on extraction errors Setting ContinueOnError to false ensures that ExtractArchive does not leave the model or backend directory in an inconsistent state if a partial failure occurs. This improves robustness against malformed archives or unexpected I/O issues during installation. Signed-off-by: RinZ27 <222222878+RinZ27@users.noreply.github.com>
This commit is contained in:
@@ -36,7 +36,7 @@ func ExtractArchive(archive, dst string) error {
|
||||
OverwriteExisting: true,
|
||||
MkdirAll: true,
|
||||
ImplicitTopLevelFolder: false,
|
||||
ContinueOnError: true,
|
||||
ContinueOnError: false,
|
||||
}
|
||||
|
||||
switch v := uaIface.(type) {
|
||||
|
||||
Reference in New Issue
Block a user