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

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

Issue 1101773002: Add Windows support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Unused import Created 5 years, 8 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
« no previous file with comments | « lib/src/runner/browser/server.dart ('k') | lib/src/util/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/loader.dart
diff --git a/lib/src/runner/loader.dart b/lib/src/runner/loader.dart
index dbc3014c440afae7b38104be0ed2ede255428731..f3122fc1c65c75f1208ca319350401930b5120f4 100644
--- a/lib/src/runner/loader.dart
+++ b/lib/src/runner/loader.dart
@@ -182,7 +182,8 @@ class Loader {
.catchError((error, stackTrace) {
if (error is! IsolateSpawnException) throw error;
- if (error.message.contains("OS Error: Connection refused")) {
+ if (error.message.contains("OS Error: Connection refused") ||
+ error.message.contains("The remote computer refused")) {
throw new LoadException(path,
"Error getting $url: Connection refused\n"
'Make sure "pub serve" is running.');
@@ -209,7 +210,7 @@ void main(_, Map message) {
''', {
'reply': receivePort.sendPort,
'metadata': metadata.serialize()
- }, packageRoot: _packageRoot);
+ }, packageRoot: p.toUri(_packageRoot));
}
}).catchError((error, stackTrace) {
receivePort.close();
« no previous file with comments | « lib/src/runner/browser/server.dart ('k') | lib/src/util/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698