From 868c5288cec5c414af0663c73f8ad244a25f62fb Mon Sep 17 00:00:00 2001 From: Maarten Mulders Date: Thu, 8 Aug 2024 20:13:13 +0200 Subject: [PATCH] fix: Suggest parse errors can be caused by requesting (too) many items Closes #396. --- .../java/it/mulders/mcs/common/SearchResponseBodyHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/mulders/mcs/common/SearchResponseBodyHandler.java b/src/main/java/it/mulders/mcs/common/SearchResponseBodyHandler.java index 3093fb7..e56be81 100644 --- a/src/main/java/it/mulders/mcs/common/SearchResponseBodyHandler.java +++ b/src/main/java/it/mulders/mcs/common/SearchResponseBodyHandler.java @@ -30,8 +30,8 @@ static Result toSearchResponse(final InputStream inputStream) { return new Result.Failure<>( new IllegalStateException( """ - Error parsing the search result. This may be a temporary failure from search.maven.org. + It can also be caused by requesting a large number of results. If that is the case, try lowering the -l/--limit parameter. If the problem persists, please open a conversation at https://github.com/mthmulders/mcs/discussions