Packages

An extended and functional wrapper for the Clash of Clans API

Current section

Files

Jump to
clashofclans lib api errors not_found.ex
Raw

lib/api/errors/not_found.ex

defmodule Api.Errors.NotFound do
def not_found(data) do
if data["reason"] == "notFound" do
{:error, "The clan or player tag is invalid"}
else
{:ok, data}
end
end
end