Add better error reporting about why keys are failing