Help:Lua debugging: Difference between revisions

Content deleted Content added
Occasional timeout errors: revised as "rare periods of 3x-4x slower server delay"
Causes of Script error: include the fact that you can actually access the error text (I didn't know this until today!)
Line 8:
 
== Causes of Script error ==
There can be many reasons why a Lua module triggers the message "<font color=maroon>'''Script error'''</font>" when run in another page. HoweverClicking the error text displays a popup that includes the actual error message generated by Lua, somewhich errorscan arebe used in a search engine to find a thorough description of what the message means and common: remedies, as well as a stack trace to help determine the part of the code that actually triggered the error.
 
However, some errors are more common than others:
 
:* '''Invalid concatenation of empty string:''' &nbsp; <code>my_str = my_str .. "xx"</code> - The string named 'my_str' must not be nil when used inside a string concatenation operation.