Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2478)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/LightweightModel_NEW.java

Issue 705173002: ignore exceptions during shutdown (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update AST class comment Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/LightweightModel_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/LightweightModel_NEW.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/LightweightModel_NEW.java
index 2ef37844d3c24c4d31aead37a8e24ee77e610891..7da35f2cda19d1725f0634d8936306112b82ead1 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/LightweightModel_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/model/LightweightModel_NEW.java
@@ -48,7 +48,13 @@ public class LightweightModel_NEW extends LightweightModel {
}
}
} catch (CoreException e) {
- e.printStackTrace();
+ if (!"Workspace is closed.".equals(e.getMessage())) {
+ DartCore.logError(e);
+ }
+ } catch (IllegalStateException e) {
+ if (!"Workspace is closed.".equals(e.getMessage())) {
+ DartCore.logError(e);
+ }
}
}
});

Powered by Google App Engine
This is Rietveld 408576698