diff --git a/lib/file_system/backend.ex b/lib/file_system/backend.ex index 293a09b6d34965dfd1cba6f64be5080e38d7f46c..7d397242c350f37c9fbfd66c9ce763a5357706e5 100644 --- a/lib/file_system/backend.ex +++ b/lib/file_system/backend.ex @@ -61,7 +61,7 @@ defmodule FileSystem.Backend do if os_type in module.supported_systems() do :ok else - Logger.error "The backend #{backend} you are using does NOT support your current system #{inspect os_type}." + Logger.error "The backend `#{backend}` you are using does NOT support your current system #{inspect os_type}." {:error, :unsupported_system} end end diff --git a/lib/file_system/worker.ex b/lib/file_system/worker.ex index fbdee6bbbee51262363e5530c021b83aed2a6415..a7736557059a21a776ef3f6861db447fe6f436c6 100644 --- a/lib/file_system/worker.ex +++ b/lib/file_system/worker.ex @@ -18,8 +18,8 @@ defmodule FileSystem.Worker do {:ok, backend} -> {:ok, backend_pid} = backend.start_link([{:worker_pid, self()} | Keyword.drop(args, [:backend])]) {:ok, %{backend_pid: backend_pid, subscribers: %{}}} - {:error, reason} -> - {:stop, reason} + {:error, _reason} -> + :ignore end end