diff --git a/lib/arc/exceptions.ex b/lib/arc/exceptions.ex index 94fc845..f4a734a 100644 --- a/lib/arc/exceptions.ex +++ b/lib/arc/exceptions.ex @@ -4,10 +4,19 @@ defmodule Arc.MissingExecutableError do def exception(opts) do message = Keyword.fetch!(opts, :message) - msg = """ - Cannot locate executable: #{message} - """ + msg = case unix_operating_system?() do + true -> + "Please look into installing imagemagick first." + false -> + "" + end + + msg = msg <> " \n Cannot locate executable: #{message}" %__MODULE__{message: msg} end + + defp unix_operating_system?() do + {:unix, :darwin} == :os.type() + end end diff --git a/lib/arc/storage/s3.ex b/lib/arc/storage/s3.ex index cd15eba..b7a7492 100644 --- a/lib/arc/storage/s3.ex +++ b/lib/arc/storage/s3.ex @@ -6,7 +6,6 @@ defmodule Arc.Storage.S3 do destination_dir = definition.storage_dir(version, {file, scope}) s3_bucket = s3_bucket(definition) s3_key = Path.join(destination_dir, file.file_name) - asset_host = asset_host(definition) acl = definition.acl(version, {file, scope}) s3_options =