better error reporting in XDI Discoverer