Avoid "env var" in error message for unknown %val expansion

This meaning is only used in C++ sources. The docs use "env
var"/"environment variable" a few times for actual environment
variables.
This commit is contained in:
Johannes Altmanninger 2021-08-10 08:17:51 +02:00
parent 580869fd49
commit c1bdafef48

View File

@ -389,7 +389,7 @@ Vector<String> ShellManager::get_val(StringView name, const Context& context) co
});
if (env_var == m_env_vars.end())
throw runtime_error("no such env var: " + name);
throw runtime_error("no such variable: " + name);
return env_var->func(name, context);
}