Unverified Commit fb88a7bf authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Update links for China help (#25238)

We have a page on the Web page now.
parent 273495b7
...@@ -53,18 +53,18 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t ...@@ -53,18 +53,18 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
curl --continue-at - --location --output "$DART_SDK_ZIP" "$DART_SDK_URL" 2>&1 || { curl --continue-at - --location --output "$DART_SDK_ZIP" "$DART_SDK_URL" 2>&1 || {
echo echo
echo "Failed to retrieve the Dart SDK at $DART_SDK_URL" echo "Failed to retrieve the Dart SDK from: $DART_SDK_URL"
echo "If you're located in China, please follow" echo "If you're located in China, please see this page:"
echo "https://github.com/flutter/flutter/wiki/Using-Flutter-in-China" echo " https://flutter.io/community/china"
echo echo
rm -f -- "$DART_SDK_ZIP" rm -f -- "$DART_SDK_ZIP"
exit 1 exit 1
} }
unzip -o -q "$DART_SDK_ZIP" -d "$FLUTTER_ROOT/bin/cache" || { unzip -o -q "$DART_SDK_ZIP" -d "$FLUTTER_ROOT/bin/cache" || {
echo echo
echo "It appears that the downloaded file is corrupt; please try the operation again later." echo "It appears that the downloaded file is corrupt; please try again."
echo "If this problem persists, please report the problem at" echo "If this problem persists, please report the problem at:"
echo "https://github.com/flutter/flutter/issues/new?template=ACTIVATION.md" echo " https://github.com/flutter/flutter/issues/new?template=ACTIVATION.md"
echo echo
rm -f -- "$DART_SDK_ZIP" rm -f -- "$DART_SDK_ZIP"
exit 1 exit 1
......
...@@ -221,9 +221,9 @@ class Cache { ...@@ -221,9 +221,9 @@ class Cache {
} on SocketException catch (e) { } on SocketException catch (e) {
if (_hostsBlockedInChina.contains(e.address?.host)) { if (_hostsBlockedInChina.contains(e.address?.host)) {
printError( printError(
'Failed to retrieve Flutter tool depedencies: ${e.message}.\n' 'Failed to retrieve Flutter tool dependencies: ${e.message}.\n'
"If you're in China, please follow " 'If you\'re in China, please see this page: '
'https://github.com/flutter/flutter/wiki/Using-Flutter-in-China', 'https://flutter.io/community/china',
emphasis: true, emphasis: true,
); );
} }
......
...@@ -98,7 +98,7 @@ void main() { ...@@ -98,7 +98,7 @@ void main() {
verifyNever(artifact2.update()); verifyNever(artifact2.update());
expect( expect(
testLogger.errorText, testLogger.errorText,
contains('https://github.com/flutter/flutter/wiki/Using-Flutter-in-China'), contains('https://flutter.io/community/china'),
); );
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment