IDEA-122677 (do not show "fatal error" dialog if the app is already loaded)

This commit is contained in:
Roman Shevchenko
2014-03-27 19:08:00 +01:00
parent 53d5579afa
commit 0b70f88c0b
@@ -99,13 +99,10 @@ public class PluginManager extends PluginManagerCore {
}
public static void processException(Throwable t) {
@SuppressWarnings("ThrowableResultOfMethodCallIgnored") StartupAbortedException se = findCause(t);
if (!IdeaApplication.isLoaded()) {
@SuppressWarnings("ThrowableResultOfMethodCallIgnored") StartupAbortedException se = findCause(t);
if (se == null) se = new StartupAbortedException(t);
if (se == null && !IdeaApplication.isLoaded()) {
se = new StartupAbortedException(t);
}
if (se != null) {
if (se.logError()) {
try {
if (Logger.isInitialized() && !(t instanceof ProcessCanceledException)) {
@@ -119,8 +116,7 @@ public class PluginManager extends PluginManagerCore {
System.exit(se.exitCode());
}
if (!(t instanceof ProcessCanceledException)) {
else if (!(t instanceof ProcessCanceledException)) {
getLogger().error(t);
}
}