Unverified Commit 18e294db authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

throw toolExit instead of rethrowing on filesystem exceptions (#31404)

parent b9170a9d
......@@ -6,6 +6,7 @@ import 'dart:async';
import 'package:meta/meta.dart';
import 'base/common.dart';
import 'base/context.dart';
import 'base/file_system.dart';
import 'base/io.dart' show SocketException;
......@@ -272,8 +273,7 @@ class Cache {
try {
await _downloadFile(url, cachedFile);
} catch (e) {
printError('Failed to fetch third-party artifact $url: $e');
rethrow;
throwToolExit('Failed to fetch third-party artifact $url: $e');
}
}
......
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