| Index: dart/lib/compiler/implementation/dart2js.dart
|
| diff --git a/dart/lib/compiler/implementation/dart2js.dart b/dart/lib/compiler/implementation/dart2js.dart
|
| index facb3c357d11f1cb6f747163d98f0961f1a3b405..347b1bfdc15d5a65dcbb90a055ec09cd71ba0d70 100644
|
| --- a/dart/lib/compiler/implementation/dart2js.dart
|
| +++ b/dart/lib/compiler/implementation/dart2js.dart
|
| @@ -40,7 +40,7 @@ void compile(List<String> argv) {
|
| String path =
|
| nativeToUriPath(argument.substring(argument.indexOf('=') + 1));
|
| out = cwd.resolve(path);
|
| - } else if (argument == '--allow-mock-compilation') {
|
| + } else if ('--allow-mock-compilation' == argument) {
|
| options.add(argument);
|
| } else if (argument.startsWith('-')) {
|
| fail('Unknown option $argument.');
|
| @@ -49,7 +49,7 @@ void compile(List<String> argv) {
|
| }
|
| }
|
| if (arguments.isEmpty()) {
|
| - fail('No files to compile.');
|
| + fail('No file to compile.');
|
| }
|
| if (arguments.length > 1) {
|
| var extra = arguments.getRange(1, arguments.length - 1);
|
|
|