| Index: pkg/intl/test/message_extraction/extract_to_json.dart
|
| diff --git a/pkg/intl/test/message_extraction/extract_to_json.dart b/pkg/intl/test/message_extraction/extract_to_json.dart
|
| index 4c1d71829eb3482d3341289c7d82275ec08259c3..9720506eff40780935541e1673fb37e3eb175047 100644
|
| --- a/pkg/intl/test/message_extraction/extract_to_json.dart
|
| +++ b/pkg/intl/test/message_extraction/extract_to_json.dart
|
| @@ -33,6 +33,8 @@ main() {
|
| var parser = new ArgParser();
|
| parser.addFlag("suppress-warnings", defaultsTo: false,
|
| callback: (x) => suppressWarnings = x);
|
| + parser.addFlag("warnings-are-errors", defaultsTo: false,
|
| + callback: (x) => warningsAreErrors = x);
|
|
|
| parser.addOption("output-dir", defaultsTo: '.',
|
| callback: (value) => targetDir = value);
|
| @@ -49,6 +51,9 @@ main() {
|
| }
|
| var file = new File(path.join(targetDir, 'intl_messages.json'));
|
| file.writeAsStringSync(json.stringify(allMessages));
|
| + if (hasWarnings && warningsAreErrors) {
|
| + exit(1);
|
| + }
|
| }
|
|
|
| /**
|
|
|