From b2929483d83bd4950aed6a417bd5a3bb2edaea2e Mon Sep 17 00:00:00 2001 From: hswick Date: Thu, 30 Aug 2018 14:19:41 -0500 Subject: [PATCH] Throw when number of inputs is not valid --- lib/exw3.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exw3.ex b/lib/exw3.ex index 475d5a8..15afc85 100644 --- a/lib/exw3.ex +++ b/lib/exw3.ex @@ -493,7 +493,7 @@ defmodule ExW3 do types_signature = Enum.join(["(", Enum.join(input_types, ","), ")"]) if Enum.count(input_types) != Enum.count(arguments) do - IO.warn("Number of provided arguments is invalid") + throw "Number of provided arguments is invalid" end bin <> (ExW3.encode_data(types_signature, arguments) |> Base.encode16(case: :lower))