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

Unified Diff: lib/src/runner/load_exception.dart

Issue 1062523003: Add support for --pub-serve. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 9 months 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: lib/src/runner/load_exception.dart
diff --git a/lib/src/runner/load_exception.dart b/lib/src/runner/load_exception.dart
index 9cf47597f555327e94d4ae6c7faf108aee6efbd1..bb34b977ad3c3b1f53eec249984de0d36c158aa6 100644
--- a/lib/src/runner/load_exception.dart
+++ b/lib/src/runner/load_exception.dart
@@ -34,8 +34,9 @@ class LoadException implements Exception {
// useless stack trace.
innerString = innerString.replaceFirst(
"Unhandled exception:\n"
- "Uncaught Error: Load Error: FileSystemException: ",
+ "Uncaught Error: Load Error: ",
"");
+ innerString = innerString.replaceFirst("FileSystemException: ", "");
innerString = innerString.split("Stack Trace:\n").first.trim();
} if (innerError is SourceSpanException) {
innerString = innerError.toString(color: color)

Powered by Google App Engine
This is Rietveld 408576698