Add backtrace to error function

Usually after pcall is done stack of a lua error is gone thus error stack can't be shown from c++. This improves error function to print the stack while it's still present.