Commits

Oscar Hellström  committed 3ceabb7

Break exception clasue in to separate function to convince dialyzer this is what we want.

  • Participants
  • Parent commits 19001f1

Comments (0)

Files changed (1)

File src/lhttpc.erl

             erlang:error(Reason)
     end.
 
--spec verify_options(options(), options()) -> ok | no_return().
+-spec verify_options(options(), options()) -> ok.
 verify_options([{send_retry, N} | Options], Errors)
         when is_integer(N), N >= 0 ->
     verify_options(Options, Errors);
 verify_options([], []) ->
     ok;
 verify_options([], Errors) ->
+    bad_options(Errors).
+
+-spec bad_options(options()) -> no_return().
+bad_options(Errors) ->
     erlang:error({bad_options, Errors}).