Improve error reporting in fetch