diff --git a/src/agner_main.erl b/src/agner_main.erl index 43752fe..d6ad1e9 100644 --- a/src/agner_main.erl +++ b/src/agner_main.erl @@ -449,9 +449,8 @@ handle_command(verify, Opts) -> {error, Reason} -> io:format("ERROR: Can't read ~s: ~p~n",[SpecFile, Reason]); {ok, Spec} -> - URL = proplists:get_value(url, Spec), TmpFile = temp_name(), - case (catch agner_download:fetch(URL,TmpFile)) of + case (catch agner_download:fetch(Spec,TmpFile)) of ok -> io:format("~nPASSED~n"); {'EXIT', {Reason, _}} ->