mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
function: Fix a broken format string
This commit is contained in:
parent
aa904f0304
commit
fe9d1228e1
2 changed files with 6 additions and 1 deletions
|
@ -156,7 +156,7 @@ fn parse_cmd_opts(
|
|||
if pid.is_err() || pid.unwrap() < 0 {
|
||||
streams
|
||||
.err
|
||||
.append(wgettext_fmt!("%ls: %ls: invalid process id", cmd));
|
||||
.append(wgettext_fmt!("%ls: %ls: invalid process id", cmd, woptarg));
|
||||
return STATUS_INVALID_ARGS;
|
||||
}
|
||||
let pid = pid.unwrap();
|
||||
|
|
|
@ -162,4 +162,9 @@ end
|
|||
|
||||
rm -r $tmpdir
|
||||
|
||||
function foo -p bar; end
|
||||
# CHECKERR: {{.*}}function.fish (line {{\d+}}): function: bar: invalid process id
|
||||
# CHECKERR: function foo -p bar; end
|
||||
# CHECKERR: ^~~~~~~~~~~~~~~~~~~^
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue