[#217] better error for unrecognized key