The antipsychotic olanzapine induces apoptosis in insulin-secreting pancreatic β cells by blocking PERK-mediated translational attenuation.