more robust error handling on Whitelist
This commit is contained in:
parent
e45698c88a
commit
f13534da3f
@ -95,6 +95,8 @@ public class Whitelist extends Appliance {
|
|||||||
uuid
|
uuid
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(response.status() != HttpStatus.OK) throw new IllegalStateException(String.format("Http Reponse %d", response.status()));
|
||||||
|
|
||||||
return response.data();
|
return response.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user