return a better error when hashing the doc
related to #13 (closed) we should return an error instead of letting jsone throwing an exception when the doc can't be serialised to JSON for the hash.
Tasks:
-
return error(bad_doc)
when the doc can't be validated.
Edited by username-removed-47203