mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-17 08:50:57 -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:
1 file changed
+1
-1
+1
-1
@@ -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