Steps to replicate the issue (include links if applicable):
- The error message in the function mw.loadJsonData on line 792 of mw.lua refers to the undeclared variable arg, instead of module.
What happens?:
- Inputting an invalid data type (such as a table) always results in the error message bad argument #1 to 'mw.loadJsonData' (string expected, got nil), even when the input is not nil, because arg is an undeclared global variable.
What should have happened instead?:
- The error message should display the correct type. For example, if the input is a table, the error should be bad argument #1 to 'mw.loadJsonData' (string expected, got table).
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):