Skip to content

Commit

Permalink
One more error code to check.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Sep 5, 2012
1 parent b33db25 commit 29e9417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/pub/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ Future<String> httpGetString(uri) {
connection.onError = (e) {
// Show a friendly error if the URL couldn't be resolved.
if (e is SocketIOException &&
(e.osError.errorCode == 8 || e.osError.errorCode == -2)) {
(e.osError.errorCode == 8 ||
e.osError.errorCode == -2 ||
e.osError.errorCode == -5)) {
e = 'Could not resolve URL "${uri.origin}".';
}

Expand Down

0 comments on commit 29e9417

Please sign in to comment.