Skip to content

Commit

Permalink
[FTR] Fixup err msg for scripts/get_owners_for_file.js (#193581)
Browse files Browse the repository at this point in the history
## Summary

Follow up of [incorrect
wording](#193277 (comment))
  • Loading branch information
wayneseymour committed Sep 20, 2024
1 parent 9b4ace8 commit 4172226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-code-owners/src/file_code_owner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export async function runGetOwnersForFileCli() {
run(
async ({ flags, log }) => {
const targetFile = flags.file as string;
if (!targetFile) throw createFlagError(`Missing --flag argument`);
if (!targetFile) throw createFlagError(`Missing --file argument`);
existOrThrow(targetFile); // This call is duplicated in getPathsWithOwnersReversed(), so this is a short circuit
const result = getCodeOwnersForFile(targetFile);
if (result) log.success(result);
Expand Down

0 comments on commit 4172226

Please sign in to comment.