         IO.puts("Valid! 🎉")
 
       {:error, :invalid} ->
-        IO.puts("Invalid")
-        IO.puts("  Please make sure you're using the correct push api key from appsignal.com")
-        IO.puts("  Contact us at support@appsignal.com if you're stuck.")
+        print_invalid()
         exit(:shutdown)
 
       {:error, reason} ->
-        IO.puts(reason)
+        print_validating_error(reason)
         exit(:shutdown)
     end
   end
 
+  defp print_invalid do
+    """
+    Invalid
+    Please make sure you're using the correct push api key from appsignal.com
+    Contact us at support@appsignal.com if you're stuck.
+    """
+    |> IO.puts()
+  end
+
+  defp print_validating_error(reason) do
+    """
+
+    Validating failed, reason:
+
+      #{inspect(reason)}
+    """
+    |> IO.puts()
+  end
+
   defp ask_for_app_name, do: ask_for_input("What is your application's name?")
 
   defp ask_kind_of_configuration do
-    IO.puts("\nThere are two methods of configuring AppSignal in your application.")
-    IO.puts("  Option 1: Using a \"config/appsignal.exs\" file. (1)")
-    IO.puts("  Option 2: Using system environment variables.  (2)")
+    """
+
+    There are two methods of configuring AppSignal in your application.
+      Option 1: Using a "config/appsignal.exs" file. (1)
+      Option 2: Using system environment variables.  (2)
+    """
+    |> IO.puts()
 
     case ask_for_input("What is your preferred configuration method? (1/2)") do
       "1" ->


  def run([]) do
    header()
    IO.puts("We're missing an AppSignal Push API key and cannot continue.")
    IO.puts("Please supply one as an argument to this command.\n")
    IO.puts("  mix appsignal.install push_api_key\n")
    IO.puts("You can find your push_api_key on https://appsignal.com/accounts under 'Add app'")
    IO.puts("Contact us at support@appsignal.com if you're stuck.")
  end

  def run([push_api_key]) do

  end

  defp output_config_environment_variables(config) do
    """
    Configuring with environment variables.
    Please put the following variables in your environment to configure AppSignal.

      export APPSIGNAL_APP_NAME="#{config[:name]}"
      export APPSIGNAL_APP_ENV="prod"
      export APPSIGNAL_PUSH_API_KEY="#{config[:push_api_key]}"
    """
    |> IO.puts()
  end

  defp write_config_file(config) do
