mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Исправлена отправка исключений
This commit is contained in:
parent
2176221c8e
commit
377a4c921f
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ public ResultInterface get() throws InterruptedException, ExecutionException {
|
|||
}
|
||||
ResultInterface result = event.result;
|
||||
waitEventHandler.requests.remove(event);
|
||||
if (event.result.getType().equals("error")) {
|
||||
if (event.result.getType().equals("error") || event.result.getType().equals("exception")) {
|
||||
ErrorRequestEvent errorRequestEvent = (ErrorRequestEvent) event.result;
|
||||
throw new ExecutionException(new RequestException(errorRequestEvent.error));
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public ResultInterface get(long timeout, TimeUnit unit) throws InterruptedExcept
|
|||
}
|
||||
ResultInterface result = event.result;
|
||||
waitEventHandler.requests.remove(event);
|
||||
if (event.result.getType().equals("error")) {
|
||||
if (event.result.getType().equals("error") || event.result.getType().equals("exception")) {
|
||||
ErrorRequestEvent errorRequestEvent = (ErrorRequestEvent) event.result;
|
||||
throw new ExecutionException(new RequestException(errorRequestEvent.error));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue