Skip to content

Commit

Permalink
fix ignored exception arguments issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirik Tsarpalis committed Dec 24, 2015
1 parent 08ef3b4 commit d78d04a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FsPickler/PicklerGeneration/DataContractPickler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ type internal DataContractPickler =
match members.[i] with
| :? PropertyInfo as p -> p.GetValue t
| :? FieldInfo as f -> f.GetValue t
| _ -> invalidOp "internal error on serializing '%O'." typeof<'T>
| _ -> invalidOp <| sprintf "internal error on serializing '%O'." typeof<'T>

picklers.[i].UntypedWrite w names.[i] value

Expand Down Expand Up @@ -249,7 +249,7 @@ type internal DataContractPickler =
let o' = picklers.[i].UntypedClone c o
f.SetValue(t', o')

| _ -> invalidOp "internal error on cloning '%O'." typeof<'T>
| _ -> invalidOp <| sprintf "internal error on cloning '%O'." typeof<'T>

run onSerialized t c
run onDeserialized t' c
Expand All @@ -267,7 +267,7 @@ type internal DataContractPickler =
match members.[i] with
| :? PropertyInfo as p -> p.GetValue t
| :? FieldInfo as f -> f.GetValue t
| _ -> invalidOp "internal error on visiting '%O'." typeof<'T>
| _ -> invalidOp <| sprintf "internal error on visiting '%O'." typeof<'T>

picklers.[i].UntypedAccept v value

Expand Down

0 comments on commit d78d04a

Please sign in to comment.