Improve error logging for /blocks/ids.