How to handle error inside Enum.each

How did it go?