commit - 875099be2e207bf611a093bf515ff688eea4c6fb
commit + 594ab2d5653f4384b54d6a3df45c75a33edd66cd
blob - a9074146fb1c87fffa061ea78027929c88487e4c
blob + 1302e3af47c1f13597c1f022cacda1319d1b9673
--- lib/shortener/router.ex
+++ lib/shortener/router.ex
json(conn, 422, %{error: "missing required field: url"})
{:error, :invalid_url} ->
- json(conn, 422, %{error: "url must be a valid http or https URL"})
+ json(conn, 422, %{error: "only http or https urls supported"})
{:error, _reason} ->
json(conn, 409, %{error: "could not save link"})