Better error handling for arm_type