Fix some small buglets in reporting lookup errors