Skip to content

Commit

Permalink
just fail instead of throwing if a relative url is provided (#2995)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgulotta authored Aug 1, 2024
1 parent 025bf90 commit a68c33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/shared/src/main/scala/zio/http/ZClient.scala
Original file line number Diff line number Diff line change
@@ -736,7 +736,7 @@ object ZClient extends ZClientPlatformSpecific {
} yield response
}
case Location.Relative =>
ZIO.fail(throw new IllegalArgumentException("Absolute URL is required"))
ZIO.fail(new IllegalArgumentException("Absolute URL is required"))
}
}

0 comments on commit a68c33b

Please sign in to comment.