Change fromObj error messages
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.

leshchevds/ganeti,leshchevds/ganeti,apyrgio/ganeti,grnet/snf-ganeti,apyrgio/snf-ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,onponomarev/ganeti,yiannist/ganeti,yiannist/ganeti,andir/ganeti,leshchevds/ganeti,dimara/ganeti,bitemyapp/ganeti,ganeti/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,mbakke/ganeti,andir/ganeti,bitemyapp/ganeti,dimara/ganeti,apyrgio/snf-ganeti,ganeti/ganeti,grnet/snf-ganeti,apyrgio/ganeti,yiannist/ganeti,andir/ganeti