Skip to content
Browse files

Vance Shipley patch to correct error handling in yaws_soap_lib

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1263 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent 6f45c69 commit c4030ff0f08663382b06a0c3eb4cb5a7cdb289c4 @klacke committed Jun 24, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/yaws_soap_lib.erl
View
4 src/yaws_soap_lib.erl
@@ -318,8 +318,8 @@ get_url_file("http://"++_ = URL) ->
{ok,{{_HTTP,RC,Emsg}, _Headers, _Body}} ->
error_logger:error_msg("~p: http-request got: ~p~n", [?MODULE, {RC, Emsg}]),
{error, "failed to retrieve: "++URL};
- _ ->
- error_logger:error_msg("~p: http-request failed~n", []),
+ {error, Reason} ->
+ error_logger:error_msg("~p: http-request failed: ~p~n", [?MODULE, Reason]),
{error, "failed to retrieve: "++URL}
end;
get_url_file("file://"++Fname) ->

0 comments on commit c4030ff

Please sign in to comment.
Something went wrong with that request. Please try again.