Adds tool warning log level and command line options to fail on warning/error output (#92031)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import 'package:args/args.dart';
|
||||
import 'package:flutter_tools/src/asset.dart' hide defaultManifestPath;
|
||||
import 'package:flutter_tools/src/base/common.dart';
|
||||
import 'package:flutter_tools/src/base/context.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart' as libfs;
|
||||
import 'package:flutter_tools/src/base/io.dart';
|
||||
@@ -70,8 +71,7 @@ Future<void> run(List<String> args) async {
|
||||
);
|
||||
|
||||
if (assets == null) {
|
||||
print('Unable to find assets.');
|
||||
exit(1);
|
||||
throwToolExit('Unable to find assets.', exitCode: 1);
|
||||
}
|
||||
|
||||
final List<Future<void>> calls = <Future<void>>[];
|
||||
|
||||
Reference in New Issue
Block a user