world client: always return non null or throw an error
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user