elixir-lang / elixir-lang.github.com

Website for Elixir
elixir-lang.org
354 stars 822 forks source link

Update macro usage error message when missing require #1590

Closed brunojppb closed 2 years ago

brunojppb commented 2 years ago

Hi Elixir team,

While reading the alias, require, and import docs and running Elixir 1.13.2, I got a slightly different output in an iex session when using the Integer.is_odd/1 macro without calling require first.

This tinny PR aims to fix that by showing the most recent message from the error raised.

whatyouhide commented 2 years ago

Thanks @brunojppb! 💟

brunojppb commented 2 years ago

Sweet! Thanks @whatyouhide ❤️ 🚀