PublishAndWait service and Adaptererror

If I use publishAndWait from the IS6 to the Broker and instead of the regular reply I the IS receives back Adapter::error can I get access to it? This is can I read the error message from the received event?

So far I have not managed to do so because in case of failure the output receivedDocument IData object in the pipeline seems to contain nothing.

Any clues?