Skip to content

Commit

Permalink
Fix product name in the error message for invalid commands.
Browse files Browse the repository at this point in the history
$ bazel blah
Command 'blah' not found. Try 'bazel help'.

--
MOS_MIGRATED_REVID=95089307
  • Loading branch information
laszlocsomor authored and kchodorow committed Jun 3, 2015
1 parent 29db384 commit e8a94ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ public int exec(List<String> args, OutErr originalOutErr, long firstContactTime)

BlazeCommand command = commandsByName.get(commandName);
if (command == null) {
outErr.printErrLn("Command '" + commandName + "' not found. " + "Try 'blaze help'.");
outErr.printErrLn(String.format(
"Command '%s' not found. Try '%s help'.", commandName, Constants.PRODUCT_NAME));
return ExitCode.COMMAND_LINE_ERROR.getNumericExitCode();
}
Command commandAnnotation = command.getClass().getAnnotation(Command.class);
Expand Down

0 comments on commit e8a94ba

Please sign in to comment.