Skip to content

Commit 2a5aa82

Browse files
committed
Merge branch 'ks/verify-filename-non-option-error-message-tweak'
Error message tweak. * ks/verify-filename-non-option-error-message-tweak: setup: update error message to be more meaningful
2 parents 932b573 + 33f3c68 commit 2a5aa82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void verify_filename(const char *prefix,
230230
int diagnose_misspelt_rev)
231231
{
232232
if (*arg == '-')
233-
die("bad flag '%s' used after filename", arg);
233+
die("option '%s' must come before non-option arguments", arg);
234234
if (looks_like_pathspec(arg) || check_filename(prefix, arg))
235235
return;
236236
die_verify_filename(prefix, arg, diagnose_misspelt_rev);

0 commit comments

Comments
 (0)