             {_, _} ->
               nodocs(inspect module)
             _ ->
-              IO.puts IEx.color(:eval_error, "#{inspect module} was not compiled with docs")
+              puts_error("#{inspect module} was not compiled with docs")
           end
         else
-          IO.puts IEx.color(:eval_error, "#{inspect module} is an Erlang module and, as such, it does not have Elixir-style docs")
+          puts_error("#{inspect module} is an Erlang module and, as such, it does not have Elixir-style docs")
         end
       {:error, reason} ->
-        IO.puts IEx.color(:eval_error, "Could not load module #{inspect module}, got: #{reason}")
+        puts_error("Could not load module #{inspect module}, got: #{reason}")
     end
     dont_display_result
   end
 
   def h(_) do
-    IO.puts IEx.color(:eval_error, "Invalid arguments for h helper")
+    puts_error("Invalid arguments for h helper")
     dont_display_result
   end
 

  defp nodocs(for),  do: no(for, "documentation")

  defp no(for, type) do
    IO.puts IEx.color(:eval_error, "No #{type} for #{for} was found")
  end
end

      :ok ->
        :ok
      :no_docs ->
        puts_error("#{inspect module} was not compiled with docs")
      :not_found ->
        nodocs("#{inspect module}.#{function}/#{arity}")
    end
