   def check_requirements("fwup") do
     case System.find_executable("fwup") do
       nil ->
-        Mix.raise("""
-        fwup is required to create and burn firmware.
-        Please see https://hexdocs.pm/nerves/installation.html#fwup
-        for installation instructions
-        """)
+        Mix.raise(missing_package_message("fwup"))
 
       _ ->
         with {vsn, 0} <- System.cmd("fwup", ["--version"]),


            Mix.raise("""
            fwup #{@fwup_semver} is required for Nerves.
            You are running #{vsn}.
            Please see https://hexdocs.pm/nerves/installation.html#fwup
            for installation instructions

  end

  def check_host_requirements(_), do: nil

  defp missing_package_message(package) do
    """
    #{package} is required by the Nerves tooling.

    Please see https://hexdocs.pm/nerves/installation.html#host-specific-tools
    for installation instructions.
    """
  end

  def debug_info(msg) do
    if System.get_env("NERVES_DEBUG") == "1" do
