Board Thread:Lua Help/@comment-24473195-20140813090251/@comment-1466854-20140820130823

Dessamator wrote: Cqm wrote: No, it's a stacktrace. You can output your own error messages, but I don't think they're anymore informative unless you're catching a common error in the input.

On wikimedia, they have the codeeditor extension so when you click on the line number link it'll send you to the line. Unfortunately, Wikia don't have that yet so we have to make do with counting lines or using an external editor. I forgot to ask, how can I output my own errors? I went through the documentations and the best I found was "error", and xpcall for catching it. But will  it show up  in the page?

If you already see errors on your page, then use of error should output to the page as well (assuming scribunto doesn't do anything odd there). It effectively just aborts the script and prints the error message you provide. If you aren't looking for a trace, something akin to error("I'm sorry, I can't do that, Dave.", 0) would do the trick (the 0 is in there to prevent anything else being added other than your message).

If you're looking for more, take a look at [].