Skip to content

Commit

Permalink
[new] Include :bindings in ex-data of thaw failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Aug 2, 2023
1 parent 8e363db commit 8778fa4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/taoensso/nippy.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1762,9 +1762,19 @@
([e msg]
(throw
(ex-info (str "Thaw failed. " msg)
{:opts (assoc opts
:compressor compressor
:encryptor encryptor)}
{:opts
(assoc opts
:compressor compressor
:encryptor encryptor)

:bindings
(enc/assoc-some {}
'*freeze-fallback* *freeze-fallback*
'*auto-freeze-compressor* *auto-freeze-compressor*
'*custom-readers* *custom-readers*
'*incl-metadata?* *incl-metadata?*
'*thaw-serializable-allowlist* *thaw-serializable-allowlist*)}

e))))

thaw-data
Expand Down

0 comments on commit 8778fa4

Please sign in to comment.