mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
error handling
This commit is contained in:
@@ -511,6 +511,7 @@ public class BuildManager implements ApplicationComponent{
|
||||
}
|
||||
catch (Throwable e) {
|
||||
myMessageDispatcher.unregisterBuildMessageHandler(sessionId);
|
||||
handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure(e.getMessage(), e));
|
||||
handler.sessionTerminated();
|
||||
future.setDone();
|
||||
}
|
||||
@@ -520,7 +521,7 @@ public class BuildManager implements ApplicationComponent{
|
||||
return future;
|
||||
}
|
||||
catch (Throwable e) {
|
||||
handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure(e.getMessage(), null));
|
||||
handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure(e.getMessage(), e));
|
||||
handler.sessionTerminated();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user