Merge pull request #107457 from akien-mga/improve-error-message-call-single-argument

Improve error messages for method calls expecting only 1 argument
This commit is contained in:
Rémi Verschelde
2025-06-12 22:49:36 +02:00
7 changed files with 8 additions and 8 deletions

View File

@ -3578,7 +3578,7 @@ bool ShaderLanguage::_validate_function_call(BlockNode *p_block, const FunctionI
// Stage-based function.
const StageFunctionInfo &sf = E.value.stage_functions[name];
if (argcount != sf.arguments.size()) {
_set_error(vformat(RTR("Invalid number of arguments when calling stage function '%s', which expects %d arguments."), String(name), sf.arguments.size()));
_set_error(vformat(RTR("Invalid number of arguments when calling stage function '%s', which expects %d argument(s)."), String(name), sf.arguments.size()));
return false;
}
// Validate arguments.