Skip to content

Commit

Permalink
Fix error message for wrong scheme in GCS location
Browse files Browse the repository at this point in the history
  • Loading branch information
hashhar committed Nov 30, 2024
1 parent 0c25fe5 commit 261f254
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ record GcsLocation(Location location)

requireNonNull(location, "location");
checkArgument(location.scheme().isPresent(), "No scheme for GCS location: %s", location);
checkArgument(location.scheme().get().equals("gs"), "Wrong scheme for S3 location: %s", location);
checkArgument(location.scheme().get().equals("gs"), "Wrong scheme for GCS location: %s", location);
checkArgument(location.host().isPresent(), "No bucket for GCS location: %s", location);
checkArgument(location.userInfo().isEmpty(), "GCS location contains user info: %s", location);
checkArgument(location.port().isEmpty(), "GCS location contains port: %s", location);
Expand Down

0 comments on commit 261f254

Please sign in to comment.