Before this commit, when trying to reload an unloaded module, the
user would see an error like:
iex(1)> r InexistentModule
** (UndefinedFunctionError) undefined function: InexistentModule.module_info/1
InexistentModule.module_info(:compile)
lib/iex/lib/iex/helpers.ex:352: IEx.Helpers.source/1
lib/iex/lib/iex/helpers.ex:311: IEx.Helpers.do_r/1
lib/iex/lib/iex/helpers.ex:304: IEx.Helpers.r/1
After this commit, the user should see
iex(1)> r InexistentModule
** (ArgumentError) Unloaded module Elixir.InexistentModule. Try loading the module's beam file with `IEx.Helpers.l\1`
lib/iex/lib/iex/helpers.ex:312: IEx.Helpers.do_r/1
lib/iex/lib/iex/helpers.ex:304: IEx.Helpers.r/1
Which is more informative.