Skip to content

Commit

Permalink
Unpack skips libraries where loading fails (unmanaged)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jand42 committed Jan 7, 2015
1 parent 9d5c5bf commit 69911dd
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -109,7 +109,9 @@ module UnpackCommand =
let script = PC.ResourceKind.Script
let content = PC.ResourceKind.Content
for p in cmd.Assemblies do
let a = loader.LoadFile p
match (try loader.LoadFile p |> Some with _ -> None) with
| None -> ()
| Some a ->
let aid = PC.AssemblyId.Create(a.FullName)
emitWithMap a.ReadableJavaScript (pc.JavaScriptPath aid)
a.MapFileForReadable (pc.MapFileName aid) (pc.MapFilePath aid)
Expand Down

0 comments on commit 69911dd

Please sign in to comment.