[Targets] Better exception handling around promises

IDEA-CR-68655 IDEA-253624

(cherry picked from commit d95ef417b4e5f95b74b36bdb4c60d7e88157a540)

IDEA-CR-68655

GitOrigin-RevId: 80b4730477e07a156d770fb7c0e6beb3dc2cd415
This commit is contained in:
Elena Shaverdova
2020-11-12 21:11:45 +01:00
committed by intellij-monorepo-bot
parent 4275bd2ad7
commit 6b83f341ae
3 changed files with 6 additions and 7 deletions

View File

@@ -91,8 +91,8 @@ public class GenericDebuggerRunner implements JvmPatchableProgramRunner<GenericD
try {
promise.setResult(doExecute(state, env));
}
catch (ExecutionException e) {
LOG.warn(e);
catch (Throwable e) {
LOG.warn("Failed to execute debug configuration async", e);
promise.setError(e.getLocalizedMessage());
}
});