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) |