Skip to content

Commit

Permalink
[#131] Serializable: make check failure error message clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Sep 15, 2020
1 parent 23400e7 commit 4b03616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taoensso/nippy.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@
(if (thaw-serializable-allowed? class-name)
(read-object in class-name)
(throw ; No way to skip bytes, so best we can do is throw
(ex-info "Cannot thaw object: `*thaw-serializable-allowlist*` check failed. See docstring for details."
(ex-info "Cannot thaw object: `taoensso.nippy/*thaw-serializable-allowlist*` check failed. This is a security feature. See `*thaw-serializable-allowlist*` docstring or https://github.com/ptaoussanis/nippy/issues/130 for details!"
{:class-name class-name}))))

(defn- read-record [in class-name]
Expand Down

0 comments on commit 4b03616

Please sign in to comment.