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