1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

Throw IOException if server sends bad response data

This commit is contained in:
Reinhard Pointner 2016-08-10 06:34:31 +08:00
parent 7dd1898761
commit 67a884f03c

View File

@ -89,7 +89,7 @@ public class CachedResource<K, R> implements Resource<R> {
}
if (data == null) {
throw new IllegalStateException(String.format("Response data is null: %s => %s", key, url));
throw new IOException(String.format("Response data is null: %s => %s", key, url));
}
return parse.transform(data);