Skip to content

Commit

Permalink
Fixes HashNuke#226, raises an exception on webdriver errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kukunin committed Dec 17, 2018
1 parent 5def8d4 commit 1844fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hound/request_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule Hound.RequestUtils do
end

defp handle_response({:error, reason}, _, _) do
{:error, reason}
raise Hound.Error, "Webdriver request error: #{inspect(reason)}"
end

defp response_parser do
Expand Down

0 comments on commit 1844fed

Please sign in to comment.