Index: sdk/lib/_internal/pub/lib/src/command.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/command.dart b/sdk/lib/_internal/pub/lib/src/command.dart |
index abc2468e41e384272d55ab39d1dca46f09e7b53b..73bf471e621d26b51a38a818c90a9667c700b2c4 100644 |
--- a/sdk/lib/_internal/pub/lib/src/command.dart |
+++ b/sdk/lib/_internal/pub/lib/src/command.dart |
@@ -173,8 +173,8 @@ and include the results in a bug report on http://dartbug.com/new. |
/// Returns the appropriate exit code for [exception], falling back on 1 if no |
/// appropriate exit code could be found. |
int _chooseExitCode(exception) { |
- if (exception is HttpException || exception is HttpParserException || |
- exception is SocketIOException || exception is PubHttpException) { |
+ if (exception is HttpException || exception is HttpException || |
+ exception is SocketException || exception is PubHttpException) { |
return exit_codes.UNAVAILABLE; |
} else if (exception is FormatException) { |
return exit_codes.DATA; |