mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 15:14:26 +08:00
Make one error translatable
This is now the same as in `read`
This commit is contained in:
parent
dad8c527e0
commit
9ef7fe1a15
|
@ -450,7 +450,7 @@ end_execution_reason_t parse_execution_context_t::run_for_statement(
|
||||||
auto var = parser->vars().get(for_var_name, ENV_DEFAULT);
|
auto var = parser->vars().get(for_var_name, ENV_DEFAULT);
|
||||||
if (env_var_t::flags_for(for_var_name.c_str()) & env_var_t::flag_read_only) {
|
if (env_var_t::flags_for(for_var_name.c_str()) & env_var_t::flag_read_only) {
|
||||||
return report_error(STATUS_INVALID_ARGS, header.var_name,
|
return report_error(STATUS_INVALID_ARGS, header.var_name,
|
||||||
L"for: %ls: cannot overwrite read-only variable", for_var_name.c_str());
|
_(L"%ls: %ls: cannot overwrite read-only variable"), L"for", for_var_name.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
auto &vars = parser->vars();
|
auto &vars = parser->vars();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user