world client: always return non null or throw an error

This commit is contained in:
Adam
2019-11-23 16:52:09 -05:00
parent 643a77ad26
commit 6f5a719cfb
3 changed files with 5 additions and 16 deletions

View File

@@ -67,7 +67,7 @@ public class WorldClient
if (!response.isSuccessful())
{
logger.debug("Error looking up worlds: {}", response);
return null;
throw new IOException("unsuccessful response looking up worlds");
}
InputStream in = response.body().byteStream();