Revision 50d26669
ID | 50d26669c9053d3e95326d9aecf8216e5c4da0d2 |
Change fromObj error messages
Currently fromObj doesn't detail what we're trying to read, which can
lead to cryptic messages: "Cannot read Int". The patch changes this
function to annotate the error messages with the key/value we're trying
to convert, by using a new version of fromJResult.
Since the display of the key in tryFromObj is now redundant (it was
already redundant in the 'not found' case), we remove it.
The new version of fromJResult (annotateJResult) simply prepends a
description string to the actual error message.
Files
- added
- modified
- copied
- renamed
- deleted