v1 was:
https://lists.libguestfs.org/archives/list/guestfs@lists.libguestfs.org/t...
In v2 I reworked it to store the last error message in thread-local
storage. The thread-local storage is cleared at the start of the
request so (hopefully) errors from one client connection are not
leaked to another, nor between callbacks on the same connection.
Rich.