Skip to content

Commit 3236fb9

Browse files
committed
fix: fix error message
1 parent 65f37ba commit 3236fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/io/github/thoroldvix/internal/DefaultYoutubeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public String get(YtApiV3Endpoint endpoint, Map<String, String> params) throws T
6464
try {
6565
response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
6666
} catch (IOException e) {
67-
throw new TranscriptRetrievalException(String.format(errorMessage, endpoint), e);
67+
throw new TranscriptRetrievalException(errorMessage, e);
6868
} catch (InterruptedException e) {
6969
Thread.currentThread().interrupt();
7070
throw new TranscriptRetrievalException(errorMessage, e);

0 commit comments

Comments
 (0)