Fix syntax for rescuing and raising errors.