   # OTP processes rewrite the :undef error to these reasons when logging
   @gen_undef [:"module could not be loaded", :"function not exported"]
 
-  defp format_stop_banner(undef, [{mod, fun, args, _info} | _]  = stacktrace)
+  defp format_stop_banner(undef, [{mod, fun, args, _info} | _] = stacktrace)
        when undef in @gen_undef and is_atom(mod) and is_atom(fun) do
     cond do
       is_list(args) ->
         format_undef(mod, fun, length(args), undef, stacktrace)
+
       is_integer(args) ->
         format_undef(mod, fun, args, undef, stacktrace)
+
       true ->
         format_stop_banner(undef)
     end


  defp crash_debug(:current_stacktrace, stack, prefix) do
    stack_prefix = [prefix | "    "]
    [prefix, "Current Stacktrace:" |
     Enum.map(stack, &[stack_prefix | Exception.format_stacktrace_entry(&1)])]
  end

  defp crash_debug(key, value, prefix) do

      case Exception.normalize(:error, reason, stacktrace) do
        %ErlangError{} ->
          format_stop_banner(reason)

        exception ->
          [?\n | Exception.format_banner(:error, exception, stacktrace)]
      end
