Skip to content

Commit

Permalink
Do not fail on BadCrcException during unzip and only show a warning - f…
Browse files Browse the repository at this point in the history
…ixes #484
  • Loading branch information
forki committed Jan 2, 2015
1 parent f48dbfc commit 256513b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 0.20.13 - 02.01.2015
* Do not fail on BadCrcException during unzip and only show a warning - https://github.com/fsprojects/Paket/issues/484

#### 0.20.12 - 02.01.2015
* BUGFIX: Dependencies file saves http and gist links correctly - https://github.com/fsprojects/Paket/issues/498

Expand Down
5 changes: 3 additions & 2 deletions src/Paket.Core/NuGetV2.fs
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@ let ExtractPackage(fileName:string, targetFolder, name, version:SemVerInfo) =
try
e.Extract(targetFolder, ExtractExistingFileAction.OverwriteSilently)
with
| exn ->
failwithf "Error during unzipping %s in %s %A: %s" e.FileName name version exn.Message
| :? Ionic.Zip.BadCrcException as exn ->
traceWarnfn "Bad Crc during unzipping %s in %s %A: %s" e.FileName name version exn.Message
| exn -> failwithf "Error during unzipping %s in %s %A: %s" e.FileName name version exn.Message

// cleanup folder structure
let rec cleanup (dir : DirectoryInfo) =
Expand Down

0 comments on commit 256513b

Please sign in to comment.