mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
fmt
This commit is contained in:
parent
d5101e1923
commit
1d0f1d2697
1 changed files with 3 additions and 4 deletions
|
@ -940,10 +940,9 @@ fn set_internal(
|
|||
// Indexes must be > 0. (Note split_var_and_indexes negates negative values).
|
||||
for ind in &split.indexes {
|
||||
if *ind <= 0 {
|
||||
streams.err.append(wgettext_fmt!(
|
||||
"%ls: array index out of bounds\n",
|
||||
cmd
|
||||
));
|
||||
streams
|
||||
.err
|
||||
.append(wgettext_fmt!("%ls: array index out of bounds\n", cmd));
|
||||
builtin_print_error_trailer(parser, streams.err, cmd);
|
||||
return STATUS_INVALID_ARGS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue