diff --git a/core/src/main/groovy/com/muwire/core/search/BrowseManager.groovy b/core/src/main/groovy/com/muwire/core/search/BrowseManager.groovy index f2d50401..fc0180cc 100644 --- a/core/src/main/groovy/com/muwire/core/search/BrowseManager.groovy +++ b/core/src/main/groovy/com/muwire/core/search/BrowseManager.groovy @@ -40,7 +40,7 @@ class BrowseManager { InputStream is = endpoint.getInputStream() String code = DataUtil.readTillRN(is) if (!code.startsWith("200")) - throw new IOException("Invalid code") + throw new IOException("Invalid code $code") // parse all headers Map headers = new HashMap<>() diff --git a/core/src/main/groovy/com/muwire/core/search/ResultsParser.groovy b/core/src/main/groovy/com/muwire/core/search/ResultsParser.groovy index cee13424..9f0eb5e5 100644 --- a/core/src/main/groovy/com/muwire/core/search/ResultsParser.groovy +++ b/core/src/main/groovy/com/muwire/core/search/ResultsParser.groovy @@ -97,7 +97,7 @@ class ResultsParser { boolean browse = false if (json.browse != null) - browse = true + browse = json.browse return new UIResultEvent( sender : p, name : name,