feat(lua): improve error message to make it actionable (#13276)

* improve error message to make it actionable
This commit is contained in:
Alvaro Muñoz
2020-11-13 19:50:03 +01:00
committed by GitHub
parent 35325ddac0
commit aaca2c1c4d
5 changed files with 9 additions and 9 deletions

View File

@@ -250,7 +250,7 @@ for i = 1, #functions do
end
output:write('\n } else {')
output:write('\n api_set_error(error, kErrorTypeException, \
"Wrong type for argument '..j..', expecting '..param[1]..'");')
"Wrong type for argument '..j..' when calling '..fn.name..', expecting '..param[1]..'");')
output:write('\n goto cleanup;')
output:write('\n }\n')
else