json: Add code to gpg_error based messages
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 24 May 2018 14:35:42 +0000 (16:35 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 24 May 2018 14:35:42 +0000 (16:35 +0200)
commit9fca7c84067c0d4c968c8920dc8ef9449769c5ea
treed3bf926deff04e0daffc112203ad89902e7ae3a9
parent61f4532ba979dea1acd8c7de9b7d56bb8ff552d5
json: Add code to gpg_error based messages

* src/gpgme-json.c (gpg_error_object): New.
(error_object_v): Extend to take error.

--
Having the error code is helpful, especially as
the strerrors are localized. E.g. to detect
an ERROR_CANCELED.
src/gpgme-json.c