Revert "Add backtrace to error function"
authorShadowNinja <shadowninja@minetest.net>
Thu, 24 Apr 2014 02:37:27 +0000 (22:37 -0400)
committerShadowNinja <shadowninja@minetest.net>
Thu, 24 Apr 2014 22:27:25 +0000 (18:27 -0400)
commite3bdd7b2ed6362c0d84d2e30e48089271695b667
tree58df584ab86feb6b4a788ff470a7383c1432bafc
parent885e93df445c65130e46b9bcc815e0b17acedf27
Revert "Add backtrace to error function"

This reverts commit 5b518ed2feff28c9bf21ad940c1b211b72d71bd1.

This caused duplicate tracebacks and tracebacks when unwanted.
It also ignored the level argument to error() and didn't pass the message (or level) to debug.traceback().
Use xpcall() or lua_pcall()'s errorhandler argument instead.
builtin/builtin.lua
builtin/mainmenu.lua