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